summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-11-30 14:57:02 +0100
committerAlan Pearce2015-11-30 14:57:02 +0100
commit2384e5742f8cd0935c41c32560dbabd5b39e0462 (patch)
treeabc155930ad4793d4c2c70a944e62e81cf9ddc90 /tag-emacs
parent99794c9d0f3bceeb4c8e5ffc6ded49051bc0c999 (diff)
downloaddotfiles-2384e5742f8cd0935c41c32560dbabd5b39e0462.tar.lz
dotfiles-2384e5742f8cd0935c41c32560dbabd5b39e0462.tar.zst
dotfiles-2384e5742f8cd0935c41c32560dbabd5b39e0462.zip
Emacs: Replace discover with which-key
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org30
1 files changed, 16 insertions, 14 deletions
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