mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package paredit
This commit is contained in:
parent
f0ee34e1b5
commit
cdc91acd35
44
init.org
44
init.org
@ -207,8 +207,7 @@
|
|||||||
|
|
||||||
(let* ((package--builtins nil)
|
(let* ((package--builtins nil)
|
||||||
(packages
|
(packages
|
||||||
'(paredit ; minor mode for editing parentheses
|
'(pdf-tools ; Emacs support library for PDF files
|
||||||
pdf-tools ; Emacs support library for PDF files
|
|
||||||
proof-general ; A generic Emacs interface for proof assistants
|
proof-general ; A generic Emacs interface for proof assistants
|
||||||
racket-mode ; Major mode for Racket language
|
racket-mode ; Major mode for Racket language
|
||||||
rustic ; Rust development environment
|
rustic ; Rust development environment
|
||||||
@ -1403,32 +1402,27 @@
|
|||||||
|
|
||||||
** Lisp
|
** Lisp
|
||||||
|
|
||||||
I use =Paredit= when editing lisp code, we enable this for all lisp-modes.
|
I use [[https://paredit.org/][Paredit]] when editing lisp code, we enable this for all lisp-modes.
|
||||||
|
Paredit version 25 [[https://paredit.org/cgit/paredit/plain/NEWS][seems to interfere]] with REPL-modes, and unbinding =RET=
|
||||||
|
is the proposed fix.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
(dolist (mode '(cider-repl-mode
|
;; minor mode for editing parentheses
|
||||||
clojure-mode
|
(use-package paredit
|
||||||
ielm-mode
|
:defer t
|
||||||
racket-mode
|
:bind (:map paredit-mode-map ("RET" . nil))
|
||||||
racket-repl-mode
|
:hook ((cider-repl-mode
|
||||||
slime-repl-mode
|
clojure-mode
|
||||||
lisp-mode
|
ielm-mode
|
||||||
emacs-lisp-mode
|
racket-mode
|
||||||
lisp-interaction-mode
|
racket-repl-mode
|
||||||
scheme-mode))
|
slime-repl-mode
|
||||||
;; add paredit-mode to all mode-hooks
|
lisp-mode
|
||||||
(add-hook (intern (concat (symbol-name mode) "-hook")) 'paredit-mode))
|
emacs-lisp-mode
|
||||||
|
lisp-interaction-mode
|
||||||
#+end_src
|
scheme-mode)
|
||||||
|
. paredit-mode))
|
||||||
Paredit version 25 seems to interfere with REPL-modes. This is the proposed
|
|
||||||
fix:
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
|
|
||||||
(with-eval-after-load 'paredit
|
|
||||||
(define-key paredit-mode-map (kbd "RET") nil))
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user