mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix lack of syntax highlighting in :x scratch buffer
This commit is contained in:
4
TODO.org
4
TODO.org
@ -1,11 +1,11 @@
|
||||
#+TITLE: DOOM Emacs Changelog
|
||||
|
||||
** Unreleased [38/52]
|
||||
** Unreleased [39/52]
|
||||
+ [-] app/finance
|
||||
+ [-] app/crm
|
||||
+ [-] Improve send-to-REPL workflow
|
||||
+ [ ] Update screenshots
|
||||
+ [ ] Fix lack of syntax highlighting in ~:x~ scratch buffer
|
||||
+ [X] Fix lack of syntax highlighting in ~:x~ scratch buffer
|
||||
+ [X] Fix modeline disappearing due to loss of state (~doom--modeline-format~ being killed on major mode change)
|
||||
+ [0/4] Investigate potential plugins
|
||||
+ [ ] feature/version-control: [[https://github.com/pidu/git-timemachine][git-timemachine]] (replacement for vc-annotate)
|
||||
|
@ -12,12 +12,13 @@ use the current window."
|
||||
(mode major-mode)
|
||||
(old-project (doom-project-root))
|
||||
(new-buf (get-buffer-create "*doom:scratch*")))
|
||||
(if bang
|
||||
(switch-to-buffer new-buf)
|
||||
(doom-popup-buffer new-buf))
|
||||
(with-current-buffer new-buf
|
||||
(setq default-directory old-project
|
||||
mode-line-format (doom-modeline 'minimal))
|
||||
(setq default-directory old-project)
|
||||
(when (and (not (eq major-mode mode))
|
||||
(functionp mode))
|
||||
(funcall mode))
|
||||
(if text (insert text)))
|
||||
(if bang (switch-to-buffer new-buf) (doom-popup-buffer new-buf))))
|
||||
(if text (insert text)))))
|
||||
|
||||
|
Reference in New Issue
Block a user