aboutsummaryrefslogtreecommitdiff
path: root/.config/doom/config.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-11 10:35:36 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-11 10:35:36 +0100
commit0e472dffe93a4494fa4e8f9c0b709dc845ea5022 (patch)
treefa5856bcfc1c879a6fa89cfde35c8aa31df603bc /.config/doom/config.el
parent6025777c60971cfa8bde2edf10948c7c182cd742 (diff)
downloaddotfiles-0e472dffe93a4494fa4e8f9c0b709dc845ea5022.tar.gz
dotfiles-0e472dffe93a4494fa4e8f9c0b709dc845ea5022.zip
doom: Disable doom from :ui
We don't actually need to load this module, since we are not using doom-themes nor anything like that. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.config/doom/config.el')
-rw-r--r--.config/doom/config.el24
1 files changed, 11 insertions, 13 deletions
diff --git a/.config/doom/config.el b/.config/doom/config.el
index ab13b65..449754b 100644
--- a/.config/doom/config.el
+++ b/.config/doom/config.el
@@ -31,12 +31,11 @@
(abbreviate-file-name (buffer-file-name))
"%b"))))))
-;; Color theme: try to use my own theme called `soria', otherwise let's go for
-;; Doom's default one (`doom-one'). There are two paths where the `soria' theme
-;; might reside. The first path we are going to try is my local dev environment,
-;; otherwise we will try the global installation path (as pointed out on the
-;; documentation of the RPM package). If none of this worked, then just go with
-;; doom's default theme.
+;; Color theme: try to use my own theme called `soria'. There are two paths
+;; where the `soria' theme might reside. The first path we are going to try is
+;; my local dev environment, otherwise we will try the global installation path
+;; (as pointed out on the documentation of the RPM package). If none of this
+;; worked, then just go with doom's default theme.
(let ((dev-dir (concat (getenv "HOME") "/src/github.com/mssola/soria"))
(global-dir "/usr/share/emacs/site-lisp/themes"))
(if (file-exists-p dev-dir)
@@ -46,13 +45,12 @@
;; If soria could be loaded as a theme, let's set the
;; `soria-theme-purple-identifiers' hook for the relevant modes.
- (if (load-theme 'soria t)
- (dolist (lang-hook '(ruby-mode-hook
- php-mode-hook
- perl-mode-hook
- emacs-lisp-mode-hook))
- (add-hook lang-hook 'soria-theme-purple-identifiers))
- (setq doom-theme 'doom-one)))
+ (when (load-theme 'soria t)
+ (dolist (lang-hook '(ruby-mode-hook
+ php-mode-hook
+ perl-mode-hook
+ emacs-lisp-mode-hook))
+ (add-hook lang-hook 'soria-theme-purple-identifiers))))
(defun mssola/face-at-point (pos)
"Writes a message with the name of the face at the current