forked from colonelpanic/dotfiles
readd smartparens
This commit is contained in:
parent
dcde0ce7cd
commit
e8052339c8
@ -782,6 +782,24 @@ I use helm for almost all emacs completion
|
|||||||
("M-g l" . avy-goto-line)
|
("M-g l" . avy-goto-line)
|
||||||
("C-'" . avy-goto-char-2)))
|
("C-'" . avy-goto-char-2)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Text Manipulation
|
||||||
|
*** smartparens
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package smartparens
|
||||||
|
:demand t
|
||||||
|
:bind (:map smartparens-mode-map
|
||||||
|
("C-)" . sp-forward-slurp-sexp)
|
||||||
|
("C-}" . sp-forward-barf-sexp)
|
||||||
|
("C-(" . sp-backward-slurp-sexp)
|
||||||
|
("C-{" . sp-backward-barf-sexp))
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(require 'smartparens-config)
|
||||||
|
(smartparens-global-mode 1)
|
||||||
|
(sp-use-smartparens-bindings)
|
||||||
|
(unbind-key "C-<backspace>" smartparens-mode-map)
|
||||||
|
(unbind-key "M-<backspace>" smartparens-mode-map)))
|
||||||
|
#+END_SRC
|
||||||
** Non-Programming
|
** Non-Programming
|
||||||
*** org
|
*** org
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -2431,7 +2449,6 @@ Go the other way when you use capital O.
|
|||||||
(bind-key "C-x O" (lambda () (interactive) (other-window -1)))
|
(bind-key "C-x O" (lambda () (interactive) (other-window -1)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(bind-key "M-q" 'fill-or-unfill-paragraph)
|
(bind-key "M-q" 'fill-or-unfill-paragraph)
|
||||||
(bind-key "C-c SPC" 'imalison:mark-ring)
|
(bind-key "C-c SPC" 'imalison:mark-ring)
|
||||||
|
Loading…
Reference in New Issue
Block a user