From 1a955742d0d0ed784c9b1f90b29c6961d53c54a0 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 11 Jan 2014 18:36:21 +0900 Subject: [PATCH] fix typo for gtags mode --- emacs.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index 9fdc92c..9e67d64 100644 --- a/emacs.el +++ b/emacs.el @@ -999,8 +999,8 @@ found, otherwise returns nil." indent-tabs-mode nil) ;; (set-face-foreground 'font-lock-keyword-face "blue") (c-toggle-hungry-state -1) - (and (require 'gtags nil t) - (gtags-mode 1)) + ;; (and (require 'gtags nil t) + ;; (gtags-mode 1)) )) (when (fetch-library @@ -1114,9 +1114,10 @@ If called intearctively, find word at point." (add-to-list 'load-path d))) -'(when (lazy-load-eval 'gtags '(gtags-mode)) +(when (lazy-load-eval 'gtags '(gtags-mode)) (add-hook 'gtags-mode-hook (lambda () + (view-mode gtags-mode) (setq gtags-select-buffer-single t) ;; (local-set-key "\M-t" 'gtags-find-tag) ;; (local-set-key "\M-r" 'gtags-find-rtag) @@ -1127,7 +1128,7 @@ If called intearctively, find word at point." (define-key gtags-mode-map (kbd "C-x t r") 'gtags-find-rtag) (define-key gtags-mode-map (kbd "C-x t s") 'gtags-find-symbol) (define-key gtags-mode-map (kbd "C-x t p") 'gtags-find-pattern) - (define-key gtags-mdoe-map (kbd "C-x t f") 'gtags-find-file) + (define-key gtags-mode-map (kbd "C-x t f") 'gtags-find-file) (define-key gtags-mode-map (kbd "C-x t b") 'gtags-pop-stack) ;back )))