diff --git a/emacs/init.org b/emacs/init.org index 57be91f..430bfbe 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1360,7 +1360,8 @@ Store backups and autosaves in a centralized place. This should really be the de Smartparens enables structured editing of s-expressions and other pairs: #+BEGIN_SRC emacs-lisp (use-package smartparens - :hook ((prog-mode . smartparens-strict-mode)) + :hook ((prog-mode . smartparens-strict-mode) + (eshell-mode . smartparens-strict-mode)) :init (defhydra hydra-smartparens (:hint nil) " @@ -1415,9 +1416,13 @@ Smartparens enables structured editing of s-expressions and other pairs: ("g" nil)) :config (require 'smartparens-config) + (show-smartparens-global-mode t) :general (prog-mode-map "C-c p" 'hydra-smartparens/body) - ((normal motion visual) prog-mode-map "g p" 'hydra-smartparens/body)) + (normal prog-mode-map "g p" 'hydra-smartparens/body) + (normal "g[" 'sp-wrap-square) + (normal "g(" 'sp-wrap-round) + (normal "g{" 'sp-wrap-curly)) (use-package evil-smartparens :after (evil smartparens) @@ -6019,11 +6024,6 @@ Does what it says on the box. :hook ((dired-sidebar-mode imenu-list-major-mode) . hide-mode-line-mode)) #+END_SRC -* show-paren-mode -#+BEGIN_SRC emacs-lisp - (show-paren-mode 1) -#+END_SRC - * Dash [[https://kapeli.com/dash][Dash]] is a code browser app for MacOS. [[https://github.com/stanaka/dash-at-point][dash-at-point]] is an Emacs interface to it. #+BEGIN_SRC emacs-lisp