Skip to content

Commit

Permalink
return the mode name as a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Sep 10, 2024
1 parent c181dff commit 67e5b8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lithium.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ which one it is so that we can demote it before promoting another.")
(car lithium-mode-stack)))

(defun lithium-current-mode-name ()
"Name of the current mode as a string."
"Name of the current mode as a symbol."
(let ((mode (lithium-current-mode)))
(when mode
(symbol-name
(lithium-mode-metadata-name mode)))))
(lithium-mode-metadata-name mode))))

(defun lithium-push-mode (mode)
"Push MODE onto the mode stack."
Expand Down

0 comments on commit 67e5b8a

Please sign in to comment.