diff options
author | Thanos Apollo <[email protected]> | 2023-12-09 10:56:06 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-09 10:57:44 +0200 |
commit | 373b7fd540fe260b703a250a9ab32a53e6a4d4f6 (patch) | |
tree | a9195878469b12a4a9f8307aeb64cb4d3373a70a /.emacs.d/modules/thanos-aesthetics.el | |
parent | b66d996193c91468c431a91137fe3db70fe93006 (diff) |
emacs: Remove duplicate functions
Diffstat (limited to '.emacs.d/modules/thanos-aesthetics.el')
-rw-r--r-- | .emacs.d/modules/thanos-aesthetics.el | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/.emacs.d/modules/thanos-aesthetics.el b/.emacs.d/modules/thanos-aesthetics.el index 3ba8956..5117868 100644 --- a/.emacs.d/modules/thanos-aesthetics.el +++ b/.emacs.d/modules/thanos-aesthetics.el @@ -192,17 +192,6 @@ (doom-modeline-mode 1) (setf doom-modeline-height 35) - -;; Custom function to load theme -(defun thanos/load-theme () - "Disable current theme and load a new one." - (interactive) - (let ((theme (intern (completing-read "Theme: " (custom-available-themes))))) - (disable-theme (car custom-enabled-themes)) - (load-theme theme t))) - -(define-key thanos/applications-map (kbd "t") 'thanos/load-theme) - ;; Don't display battery-mode on desktop (if is-zeus (display-battery-mode 0) @@ -242,28 +231,6 @@ (global-set-key (kbd "M-.") 'xref-find-definitions) (global-set-key (kbd "C-c L") 'display-line-numbers-mode) -;; wallpapers -(defvar wallpapers-dir "~/wallpapers/") - -(defun thanos/wallpaper-set (image) - "Set IMAGE as wallpaper, using feh." - (call-process-shell-command - (concat "xwallpaper --focus " wallpapers-dir image) nil 0)) - -(defun thanos/wallpaper-random () - "Set random wallpaper." - (interactive) - (let ((wallpapers (directory-files "~/wallpapers" nil "^[^.].*"))) - (thanos/wallpaper-set (nth (random (length wallpapers)) wallpapers)))) - -(defun thanos/wallpaper-select () - "Set wallpaper." - (interactive) - (let ((wallpaper (completing-read "Choose wallpaper: " (directory-files wallpapers-dir nil "^[^.].*")))) - (thanos/wallpaper-set wallpaper))) - -(define-key thanos/applications-map (kbd "w") 'thanos/wallpaper-select) - ;; Symbols (add-hook 'emacs-lisp-mode-hook 'prettify-symbols-mode) |