From 2384e5742f8cd0935c41c32560dbabd5b39e0462 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 30 Nov 2015 14:57:02 +0100 Subject: Emacs: Replace discover with which-key --- tag-emacs/emacs.d/init.org | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index feeb55d..5808807 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1015,14 +1015,15 @@ A nicer way to browse keybindings for major modes. :bind ("C-h C-m" . discover-my-major)) #+END_SRC -** discover +** which-key -Makes some context menus for dired and other things, similarly to the -way magit’s popups work. +Popup keybindings following a prefix automatically. #+BEGIN_SRC emacs-lisp -(use-package discover - :config (global-discover-mode)) + (use-package which-key + :config (progn + (which-key-mode) + (which-key-setup-side-window-right-bottom))) #+END_SRC ** eldoc @@ -1658,15 +1659,16 @@ Go has a few packages to inter-operate with other emacs packages. A nice completion backend for programming modes. #+BEGIN_SRC emacs-lisp -(use-package ggtags - :commands turn-on-ggtags-mode - :config (progn - (bind-key "q" #'ggtags-navigation-mode-abort ggtags-navigation-mode-map)) - :init (progn - (defun turn-on-ggtags-mode () - (interactive) - (ggtags-mode 1)) - (add-hook 'c-mode-common-hook #'turn-on-ggtags-mode))) + (use-package ggtags + :commands turn-on-ggtags-mode + :functions (ggtags-navigation-mode-abort) + :config (progn + (bind-key "q" #'ggtags-navigation-mode-abort ggtags-navigation-mode-map)) + :init (progn + (defun turn-on-ggtags-mode () + (interactive) + (ggtags-mode 1)) + (add-hook 'c-mode-common-hook #'turn-on-ggtags-mode))) #+END_SRC ** Lisps -- cgit 1.4.1