Emacs: Use counsel-imenu, remove flimenu.
This commit is contained in:
parent
13e01743cd
commit
bebe46145d
|
@ -1,6 +1,6 @@
|
||||||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-11-13T14:41:37+0100>
|
;; Time-stamp: <2020-11-13T18:00:51+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * treemacs
|
;; * treemacs
|
||||||
|
@ -64,9 +64,10 @@
|
||||||
;; Extensions for ivy
|
;; Extensions for ivy
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:demand t
|
:demand t
|
||||||
:after (ivy)
|
:after (ivy imenu)
|
||||||
:bind (("C-x C-f" . counsel-find-file)
|
:bind (("C-x C-f" . counsel-find-file)
|
||||||
("M-x" . counsel-M-x)))
|
("M-x" . counsel-M-x)
|
||||||
|
("M-i" . counsel-imenu)))
|
||||||
|
|
||||||
;; More information in ivy mini-buffers.
|
;; More information in ivy mini-buffers.
|
||||||
(use-package ivy-rich
|
(use-package ivy-rich
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-11-13T16:29:55+0100>
|
;; Time-stamp: <2020-11-13T17:58:15+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -203,20 +203,6 @@ collapse other projects."
|
||||||
(set-face-foreground 'hl-indent-face (face-background 'default)))
|
(set-face-foreground 'hl-indent-face (face-background 'default)))
|
||||||
:hook (prog-mode . hl-indent-mode))
|
:hook (prog-mode . hl-indent-mode))
|
||||||
|
|
||||||
;; Tries to find points of interest in buffer and jumps to them.
|
|
||||||
(use-package imenu
|
|
||||||
:custom (imenu-auto-rescan t)
|
|
||||||
:bind ("M-i" . imenu))
|
|
||||||
|
|
||||||
;; Tries to find points of interest in all open buffers and jumps to them.
|
|
||||||
(use-package imenu-anywhere
|
|
||||||
:after (imenu ivy)
|
|
||||||
:bind ("C-M-i" . ivy-imenu-anywhere))
|
|
||||||
|
|
||||||
;; Flatten imenu list.
|
|
||||||
(use-package flimenu
|
|
||||||
:hook (c++-mode . flimenu-mode))
|
|
||||||
|
|
||||||
;; Jump to definition using grep.
|
;; Jump to definition using grep.
|
||||||
(use-package dumb-jump
|
(use-package dumb-jump
|
||||||
:after (ivy)
|
:after (ivy)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-10-27T09:44:52+0100>
|
;; Time-stamp: <2020-11-13T17:59:58+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -120,7 +120,8 @@
|
||||||
(ispell-change-dictionary "de_DE")))
|
(ispell-change-dictionary "de_DE")))
|
||||||
:bind (("<f8>" . my/toggle-flyspell)
|
:bind (("<f8>" . my/toggle-flyspell)
|
||||||
(:map flyspell-mode-map
|
(:map flyspell-mode-map
|
||||||
("C-;" . nil))) ; iedit needs C-;.
|
("C-;" . nil) ; iedit needs C-;.
|
||||||
|
("C-M-i" . nil))) ; imenu-anywhere needs it.
|
||||||
:hook ((prog-mode . flyspell-prog-mode) ; Spellcheck comments.
|
:hook ((prog-mode . flyspell-prog-mode) ; Spellcheck comments.
|
||||||
(text-mode . flyspell-mode) ; Spellcheck text documents ↓.
|
(text-mode . flyspell-mode) ; Spellcheck text documents ↓.
|
||||||
(LaTeX-mode . my/flyspell-german)
|
(LaTeX-mode . my/flyspell-german)
|
||||||
|
@ -309,5 +310,14 @@
|
||||||
:diminish rainbow-mode
|
:diminish rainbow-mode
|
||||||
:hook (prog-mode . rainbow-mode))
|
:hook (prog-mode . rainbow-mode))
|
||||||
|
|
||||||
|
;; Tries to find points of interest in buffer and jumps to them.
|
||||||
|
(use-package imenu
|
||||||
|
:custom (imenu-auto-rescan t))
|
||||||
|
|
||||||
|
;; Tries to find points of interest in all open buffers and jumps to them.
|
||||||
|
(use-package imenu-anywhere
|
||||||
|
:after (imenu ivy)
|
||||||
|
:bind ("C-M-i" . ivy-imenu-anywhere))
|
||||||
|
|
||||||
(provide 'text/common)
|
(provide 'text/common)
|
||||||
;;; common.el ends here
|
;;; common.el ends here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user