mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: make the gnome-accent-theme-switcher only load in GNOME
This commit is contained in:
parent
36844d4ba6
commit
d539d16e41
|
|
@ -132,12 +132,12 @@
|
|||
(define-key global-map (kbd "C-c p") #'cursory-set-preset)))
|
||||
|
||||
;;; GNOME accent theme switcher
|
||||
(prot-emacs-configure
|
||||
(prot-emacs-install
|
||||
gnome-accent-theme-switcher
|
||||
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
|
||||
(when (and (null prot-emacs-load-theme-family)
|
||||
(string= (getenv "DESKTOP_SESSION") "gnome"))
|
||||
(when (and (null prot-emacs-load-theme-family)
|
||||
(string= (getenv "DESKTOP_SESSION") "gnome"))
|
||||
(prot-emacs-configure
|
||||
(prot-emacs-install
|
||||
gnome-accent-theme-switcher
|
||||
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
|
||||
(prot-emacs-keybind global-map
|
||||
"<f5>" #'gnome-accent-theme-switcher-toggle-mode
|
||||
"C-<f5>" #'gnome-accent-theme-switcher-change-accent
|
||||
|
|
|
|||
|
|
@ -2316,12 +2316,12 @@ the GNOME desktop environment ([[#h:3f1a33e4-762e-4cf3-a0ae-4c2954d9cbb8][The =p
|
|||
|
||||
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-theme.el"
|
||||
;;; GNOME accent theme switcher
|
||||
(prot-emacs-configure
|
||||
(prot-emacs-install
|
||||
gnome-accent-theme-switcher
|
||||
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
|
||||
(when (and (null prot-emacs-load-theme-family)
|
||||
(string= (getenv "DESKTOP_SESSION") "gnome"))
|
||||
(when (and (null prot-emacs-load-theme-family)
|
||||
(string= (getenv "DESKTOP_SESSION") "gnome"))
|
||||
(prot-emacs-configure
|
||||
(prot-emacs-install
|
||||
gnome-accent-theme-switcher
|
||||
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
|
||||
(prot-emacs-keybind global-map
|
||||
"<f5>" #'gnome-accent-theme-switcher-toggle-mode
|
||||
"C-<f5>" #'gnome-accent-theme-switcher-change-accent
|
||||
|
|
|
|||
Loading…
Reference in a new issue