From 3605a51f947617a64eeefa2bb50de7549e0e64a0 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 9 Nov 2018 08:36:40 +0100 Subject: [PATCH] C: Bind "C-c d" to gtk-lookup-symbol --- .emacs.d/lisp/init-cc.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.emacs.d/lisp/init-cc.el b/.emacs.d/lisp/init-cc.el index 3f24aec4..823265f9 100644 --- a/.emacs.d/lisp/init-cc.el +++ b/.emacs.d/lisp/init-cc.el @@ -6,10 +6,12 @@ (ambrevar/define-keys map "C-c m" 'cc-main "" 'ambrevar/cc-clean "M-." 'semantic-ia-fast-jump - "C-c C-d" 'semantic-ia-show-summary + "C-c C-d" 'semantic-ia-show-doc "M-" 'semantic-complete-analyze-inline) (when (require 'company nil t) - (define-key map (kbd "M-") (if (require 'helm-company nil t) 'helm-company 'company-complete)))) + (define-key map (kbd "M-") (if (require 'helm-company nil t) 'helm-company 'company-complete))) + (when (require 'gtk-look nil 'noerror) + (define-key map (kbd "C-c d") 'gtk-lookup-symbol))) ;; (define-key map (kbd "C-c o") 'ff-find-other-file) (defvaralias 'c-basic-offset 'tab-width)