Closed franzmondlichtmann closed 9 months ago
I gave this a quick try (testing on Emacs 29.1) and I think it may actually be a bug/feature in Emacs which only affects the fundamental mode buffers created during startup; the default initial buffer does not have devil-mode
enabled but the global mode is enabled (i.e. the global-devil-mode
variable value is t
). devil-mode
does get applied to most other buffers as well as new all buffers.
Testing with global-whitespace-mode
shows a similar issue, that the default initial buffer doesn't get the mode applied correctly.
This does not seem to be related to using the customization variable to enable the global mode; I see the same problem when loading the package and calling the function directly in my config file:
(when (require 'devil nil 'noerror)
(global-devil-mode))
...I had just never noticed the problem because I don't use the default initial buffer. The '*Async-native-compile-log\' buffer also shows the same issue, if your startup happens to create one of those.
I defined the following in the custom variables section below: '(global-devil-mode t) Nevertheless, devil mode is not enabled at emacs start-up. The custom shortcut to switch to global-devil-mode works fine: (global-set-key (kbd "C-,") 'global-devil-mode)) Only other plugin I have installed is the catppuccin-theme and the plugin manager elpaca, which work fine.