Permalink
Browse files

New hook.

  • Loading branch information...
Andersbakken committed Dec 6, 2017
1 parent 7c6c50c commit 324f256acfdac2582c684e757078b1ca73ba28ec
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/rtags.el
View
@@ -478,6 +478,11 @@ return t if RTags is allowed to modify this file."
:group 'rtags
:type 'hook)
(defcustom rtags-switch-to-buffer-hook nil
"Run after RTags has switched to a buffer"
:group 'rtags
:type 'hook)
(defcustom rtags-jump-to-first-match t
"If t, jump to first match."
:group 'rtags
@@ -768,7 +773,8 @@ switch to BUFFER-OR-NAME in other window."
(if other-window
(switch-to-buffer-other-window buffer-or-name)
(switch-to-buffer buffer-or-name))
(set (make-local-variable 'rtags-previous-window-configuration) conf)))
(set (make-local-variable 'rtags-previous-window-configuration) conf)
(run-hooks 'rtags-switch-to-buffer-hook)))
;; for old emacsen
(defun rtags-string-prefix-p (str1 str2 &optional ignore-case)

0 comments on commit 324f256

Please sign in to comment.