From: Mark Wooding Date: Fri, 28 Jul 2017 14:48:36 +0000 (+0100) Subject: dot/emacs: Configure `ido' to do completing reads for Gtags. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/733514e5fdbce89f2e2fe3e72c455911d7d5c8e9?ds=inline dot/emacs: Configure `ido' to do completing reads for Gtags. There'll be other things to add to this now I've got a taste for it. --- diff --git a/dot/emacs b/dot/emacs index 6cf5b6e..93e54f8 100644 --- a/dot/emacs +++ b/dot/emacs @@ -588,8 +588,22 @@ (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)