Trim candidate list of *things*

This commit is contained in:
Lars Tveito 2019-12-04 16:34:11 +01:00
parent d5631db0b6
commit cbba87b062

View File

@ -165,9 +165,7 @@ according to major-mode. If `focus-current-thing' is set, this
default is overwritten. This function simply helps set the default is overwritten. This function simply helps set the
`focus-current-thing'." `focus-current-thing'."
(interactive) (interactive)
(let* ((candidates '(symbol list sexp defun (let* ((candidates '(defun line list paragraph sentence sexp symbol word))
filename url email word
sentence whitespace line page))
(thing (completing-read "Thing: " candidates))) (thing (completing-read "Thing: " candidates)))
(setq focus-current-thing (intern thing)))) (setq focus-current-thing (intern thing))))