diff options
author | Mitchel Humpherys <mitch.special@gmail.com> | 2013-12-13 16:59:16 -0800 |
---|---|---|
committer | Mitchel Humpherys <mitch.special@gmail.com> | 2013-12-13 17:01:02 -0800 |
commit | 898cc999063583e0740e512b46183219d88107ef (patch) | |
tree | a88fd80c733b7d40ffe48a4e734796126bc41c6c /helm-tags.el | |
parent | 39979da67f6f735fe23172ce4d0e9187016c7c08 (diff) |
helm-tags.el (helm-etags-select): don't force `execute action at once'
Provide a defcustom variable to control whether or not helm will be run
with `helm-execute-action-at-once-if-one'. It can be useful to not
execute the action at once if you actually want to jump to some
unrelated tag.
Diffstat (limited to 'helm-tags.el')
-rw-r--r-- | helm-tags.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helm-tags.el b/helm-tags.el index 02ca614a..6a783c76 100644 --- a/helm-tags.el +++ b/helm-tags.el @@ -42,6 +42,12 @@ helm-source-ctags-select." :type 'boolean :group 'helm-tags) +(defcustom helm-etags-execute-action-at-once-if-one t + "Whether to jump straight to the selected tag if there's only +one match." + :type 'boolean + :group 'helm-tags) + (defvar helm-etags-map (let ((map (make-sparse-keymap))) @@ -255,7 +261,7 @@ Called with two prefix arg reinitialize cache. If tag file have been modified reinitialize cache." (interactive "P") (let ((tag (helm-etags-get-tag-file)) - (helm-execute-action-at-once-if-one t)) + (helm-execute-action-at-once-if-one helm-etags-execute-action-at-once-if-one)) (when (or (equal arg '(4)) (and helm-etags-mtime-alist (helm-etags-file-modified-p tag))) |