Some changes
This commit is contained in:
parent
abb4ce7925
commit
7ebb1e095e
16
init.el
16
init.el
@ -325,13 +325,21 @@ directory. Otherwise, run `find-file' on that file."
|
|||||||
(evil-cleverparens-mode . paredit-mode))
|
(evil-cleverparens-mode . paredit-mode))
|
||||||
:bind (:map paredit-mode-map
|
:bind (:map paredit-mode-map
|
||||||
("C-<return>" . paredit-RET)
|
("C-<return>" . paredit-RET)
|
||||||
("C-RET" . paredit-RET))
|
("C-RET" . paredit-RET)
|
||||||
|
:map evil-cleverparens-mode-map
|
||||||
|
("C-c o" . evil-cp-open-below-form))
|
||||||
:custom
|
:custom
|
||||||
(eldoc-add-command 'paredit-RET)
|
(eldoc-add-command 'paredit-RET
|
||||||
|
'paredit-open-round
|
||||||
|
'paredit-open-angled
|
||||||
|
'paredit-open-bracket
|
||||||
|
'paredit-open-angled
|
||||||
|
'paredit-open-parenthesis)
|
||||||
(evil-cleverparens-use-s-and-S nil)
|
(evil-cleverparens-use-s-and-S nil)
|
||||||
:config
|
:config
|
||||||
|
(define-key evil-cleverparens-mode-map (kbd "<normal-state> M-o") nil t)
|
||||||
(defun my/-enable-evil-cleverparens ()
|
(defun my/-enable-evil-cleverparens ()
|
||||||
(if (member major-mode '(common-lisp-mode emacs-lisp-mode))
|
(if (member major-mode '(lisp-mode emacs-lisp-mode))
|
||||||
(evil-cleverparens-mode 1)
|
(evil-cleverparens-mode 1)
|
||||||
(electric-pair-local-mode 1))))
|
(electric-pair-local-mode 1))))
|
||||||
|
|
||||||
@ -1050,7 +1058,7 @@ indentation of plists."
|
|||||||
(advice-add 'calculate-lisp-indent :around
|
(advice-add 'calculate-lisp-indent :around
|
||||||
'my/-calculate-indent-fix-plists)
|
'my/-calculate-indent-fix-plists)
|
||||||
|
|
||||||
(defvar my/max-lisp-noindent-comment-search-lines 10
|
(defvar my/max-lisp-noindent-comment-search-lines 30
|
||||||
"Max lines to search for the noindent comment.")
|
"Max lines to search for the noindent comment.")
|
||||||
|
|
||||||
(defun my/-calculate-lisp-indent-noindent-comment (oldfun &rest args)
|
(defun my/-calculate-lisp-indent-noindent-comment (oldfun &rest args)
|
||||||
|
Loading…
Reference in New Issue
Block a user