chiark / gitweb /
dot/emacs: Configure `ido' to do completing reads for Gtags.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jul 2017 14:48:36 +0000 (15:48 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jul 2017 14:48:36 +0000 (15:48 +0100)
There'll be other things to add to this now I've got a taste for it.

dot/emacs

index 6cf5b6e3020d1cc4bfa951c61ca44f535bec5edd..93e54f897b17aad06f9612f687e67723e31b9b44 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq windmove-wrap-around t)
 (trap (require 'ido) (ido-mode 1)
       (require 'ido-ubiquitous) (ido-ubiquitous-mode 1)
+      (setq ido-cr+-max-items nil
+           ido-ubiquitous-command-overrides
+           (append ido-ubiquitous-command-overrides
+                   `((enable-old regexp ,(concat "\\`"
+                                                 "gtags-find-"
+                                                 "\\("    "tag"
+                                                       "\\|file"
+                                                       "\\|rtag"
+                                                       "\\|symbol"
+                                                 "\\)"
+                                                 "\\(" "\\|-other-window"
+                                                 "\\)"
+                                                 "\\'")))))
       (setq magit-completing-read-function 'magit-ido-completing-read)
       (require 'smex) (smex-initialize) (global-set-key [?\M-x] 'smex))
+
 (progn
   (global-set-key [?\C-c ?\M-x] 'execute-extended-command)
   (global-set-key [?\e ?\e] 'mdw-wrong)