mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-07 12:47:30 -05:00
(py|rb)env version in modeline + define-builder macro
This commit is contained in:
10
core/lib/macros-spaceline.el
Normal file
10
core/lib/macros-spaceline.el
Normal file
@ -0,0 +1,10 @@
|
||||
;;; defuns-spaceline.el
|
||||
|
||||
;;;###autoload
|
||||
(defmacro define-env-command! (mode command)
|
||||
(add-hook! (focus-in find-file) 'narf|spaceline-env-update)
|
||||
`(add-hook ',(intern (format "%s-hook" (symbol-name mode)))
|
||||
(lambda () (setq narf--env-command ,command))))
|
||||
|
||||
(provide 'defuns-spaceline)
|
||||
;;; defuns-spaceline.el ends here
|
Reference in New Issue
Block a user