Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can custom lighter #1101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion yasnippet.el
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Yasnippet no longer comes with installed snippets" "0.14")
(defconst yas--default-user-snippets-dir
(expand-file-name "snippets" user-emacs-directory))

(defcustom yas-lighter " yas"
"Minor mode lighter in mode-line."
:type 'string)

(defcustom yas-snippet-dirs (list yas--default-user-snippets-dir)
"List of top-level snippet directories.

Expand Down Expand Up @@ -879,7 +883,7 @@ Negative prefix argument turns off the mode.

Key bindings:
\\{yas-minor-mode-map}"
:lighter " yas" ;; The indicator for the mode line.
:lighter yas-lighter ;; The indicator for the mode line.
(cond ((and yas-minor-mode (featurep 'yasnippet))
;; Install the direct keymaps in `emulation-mode-map-alists'
;; (we use `add-hook' even though it's not technically a hook,
Expand Down