Add comment

This commit is contained in:
Bram Schoenmakers 2023-02-13 22:45:16 +01:00
parent daceaa0ea0
commit d1af9b3a27

View file

@ -329,10 +329,29 @@ Found [[https://www.reddit.com/r/emacs/comments/e2u5n9/comment/f918t22/][a Reddi
(eshell-mode . outline-minor-mode))
#+end_src
* Automatically reformat source blocks in Org Mode :org:orgbabel:emacs:
#+begin_src elisp :tangle gists/format-org-mode-source-blocks.el
;; https://github.com/lassik/emacs-format-all-the-code
(use-package format-all)
(use-package org
:config
(defun my/format-all-advice ()
(ignore-errors ; in case there's no language support
(call-interactively #'format-all-buffer)))
(advice-add #'org-edit-src-exit :before #'my/format-all-advice))
#+end_src
Better adapt the README file instead.
* Paredit inside minibuffer commands :emacs:
Used [[https://github.com/purcell/emacs.d/blob/master/lisp/init-paredit.el][Purcell's configation]] as a starting point.
It turns out it didn't work as well as I hoped, paredit steals the RET binding so a newline is inserted in the minibuffer, instead of submitting the input.
#+name: minibuffer-paredit
#+begin_src elisp :tangle gists/minibuffer-paredit.el
(use-package paredit