(Emacs/config)~auto filling some Lisp

This commit is contained in:
2024-08-16 12:22:28 +01:00
parent bc3cb22281
commit 022420c498

View File

@@ -159,9 +159,9 @@ Clean all buffers except for those in ~+oreo/keep-buffers~.
(defun +oreo/clean-buffers () (defun +oreo/clean-buffers ()
"Kill all buffers except any with names in +oreo/keep-buffers." "Kill all buffers except any with names in +oreo/keep-buffers."
(interactive) (interactive)
(let ((should-not-kill #'(lambda (buf) (member (buffer-name buf) +oreo/keep-buffers))) (let ((should-not-kill #'(lambda (buf) (member (buffer-name buf)
(buffers (buffer-list))) +oreo/keep-buffers))))
(mapcar #'kill-buffer (cl-remove-if should-not-kill buffers)))) (mapcar #'kill-buffer (cl-remove-if should-not-kill (buffer-list)))))
#+end_src #+end_src
** Custom window management ** Custom window management
Emacs' default window management is horrendous, using other windows on Emacs' default window management is horrendous, using other windows on
@@ -1066,7 +1066,8 @@ for all snippets I've got.
(insert-leader (insert-leader
"i" #'yas-insert-snippet) "i" #'yas-insert-snippet)
:config :config
(yas-load-directory (no-littering-expand-etc-file-name "yasnippet/snippets"))) (yas-load-directory (no-littering-expand-etc-file-name
"yasnippet/snippets")))
#+end_src #+end_src
*** Hydra *** Hydra
Hydra is a great package by =abo-abo= (yes the same guy who made ivy Hydra is a great package by =abo-abo= (yes the same guy who made ivy