Smartparens: enable in eshell-mode, add wrap keys, use show-mode

This commit is contained in:
Jeremy Dormitzer 2020-06-03 15:09:09 -04:00
parent 14e3241f6d
commit 4d2b44c256

View File

@ -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