Install the loccur package

This commit is contained in:
Gergely Polonkai 2018-11-13 14:59:38 +01:00
parent c47fb8ee37
commit 5dfe9ec966
2 changed files with 20 additions and 0 deletions

View File

@ -2134,6 +2134,25 @@ This will be replaced with something self-hosted, eventually.
(editorconfig-mode t)) (editorconfig-mode t))
#+END_SRC #+END_SRC
** occur-like folding in the current buffer
#+BEGIN_SRC emacs-lisp
(defun gpolonkai/toggle-loccur ()
"Toggle `loccur-mode'.
If `loccur-mode' is not active, starts it (which, in turn, will ask for the
pattern to look for). If it is active, it will disable it."
(interactive)
(if loccur-mode
(loccur-mode nil)
(call-interactively 'loccur)))
(use-package loccur
:bind
(:map gpolonkai/pers-map
("C-o" . gpolonkai/toggle-loccur)))
#+END_SRC
* Make programming a bit easier * Make programming a bit easier
** Electric case ** Electric case

View File

@ -124,6 +124,7 @@
js2-mode js2-mode
json-mode json-mode
kanban kanban
loccur
lorem-ipsum lorem-ipsum
magit magit
magit-gerrit magit-gerrit