Commit f04dd5ce0914

Vincent Demeester <vincent@sbr.pm>
2020-03-03 17:48:18
Load shortbrain theme only on wakasu ๐Ÿ˜‰
It's not "ready" for prime use yet, so only load it on my main workstation. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 92fa4e3
lisp/00-vde-mode.el โ†’ config/00-vde-mode.el
File renamed without changes
config/setup-style.el
@@ -66,11 +66,15 @@
 ;;; Theme
 (setq custom-safe-themes t)    ; Treat themes as safe
 
-(use-package doom-themes
-  :config
-  (load-theme 'doom-one-light t)
-  (doom-themes-visual-bell-config)
-  (doom-themes-org-config))
+(if (string= (system-name) "wakasu")
+    (use-package shortbrain-light-theme
+      :config
+      (load-theme 'shortbrain-light))
+  (use-package doom-themes
+    :config
+    (load-theme 'doom-one-light t)
+    (doom-themes-visual-bell-config)
+    (doom-themes-org-config)))
 
 (use-package solaire-mode
   :config
@@ -181,12 +185,12 @@
 (defun set-light-theme ()
   "Set the light theme with some customization if needed."
   (interactive)
-  (load-theme 'doom-one-light t))
+  (load-theme 'shortbrain-light t))
 
 (defun set-dark-theme ()
   "Set the dark theme with some customization if needed."
   (interactive)
-  (load-theme 'doom-one t))
+  (load-theme 'shortbrain t))
 
 (defun theme-switcher ()
   (interactive)
emacs.org
@@ -421,7 +421,7 @@
 function with the right argument.
 
 #+begin_src emacs-lisp :tangle init.el
-(vde/el-load-dir (concat user-emacs-directory "/lisp/"))
+(add-to-list 'load-path (concat user-emacs-directory "lisp/"))
 (vde/el-load-dir (concat user-emacs-directory "/config/"))
 #+end_src
 
@@ -4542,14 +4542,15 @@
 ;;; Theme
 (setq custom-safe-themes t)    ; Treat themes as safe
 
-;; (use-package doom-themes
-;;   :config
-;;   (load-theme 'doom-one-light t)
-;;   (doom-themes-visual-bell-config)
-;;   (doom-themes-org-config))
-(use-package emacs
-  :config
-  (load-theme 'shortbrain-light))
+(if (string= (system-name) "wakasu")
+    (use-package shortbrain-light-theme
+      :config
+      (load-theme 'shortbrain-light))
+  (use-package doom-themes
+    :config
+    (load-theme 'doom-one-light t)
+    (doom-themes-visual-bell-config)
+    (doom-themes-org-config)))
 
 (use-package solaire-mode
   :config
@@ -4816,7 +4817,7 @@
 :CUSTOM_ID: h:19bf468b-1fcd-469f-9c25-dee2e200f7e7
 :END:
 
-#+begin_src emacs-lisp :tangle lisp/00-vde-mode.el
+#+begin_src emacs-lisp :tangle config/00-vde-mode.el
 ;;; -*- lexical-binding: t; -*-
 (defvar vde-special-keymap-prefix (kbd "C-x m")
   "`vde-mode' keymap prefix.
init.el
@@ -97,7 +97,7 @@
       (while files
         (load-file (concat dir (pop files))))))
 
-(vde/el-load-dir (concat user-emacs-directory "/lisp/"))
+(add-to-list 'load-path (concat user-emacs-directory "lisp/"))
 (vde/el-load-dir (concat user-emacs-directory "/config/"))
 
 (defun vde/short-hostname ()