diff options
| author | jdlugosz963 <jdlugosz963@gmail.com> | 2024-04-27 20:09:08 +0200 |
|---|---|---|
| committer | jdlugosz963 <jdlugosz963@gmail.com> | 2024-04-27 20:09:08 +0200 |
| commit | 06e0a80f7b509fc2a565aff9ec8311caf4bf6aae (patch) | |
| tree | 8edc05e4a3d05250863bbbaa3bb2228373772612 /.emacs.d/jd/jd-ui.el | |
| parent | 73af89d935df5a8166114c9257f9f247f29850bf (diff) | |
| download | dotfiles-06e0a80f7b509fc2a565aff9ec8311caf4bf6aae.tar.gz dotfiles-06e0a80f7b509fc2a565aff9ec8311caf4bf6aae.zip | |
Remove trash and change name from jd/use-package to use-package!
Diffstat (limited to '.emacs.d/jd/jd-ui.el')
| -rwxr-xr-x | .emacs.d/jd/jd-ui.el | 88 |
1 files changed, 35 insertions, 53 deletions
diff --git a/.emacs.d/jd/jd-ui.el b/.emacs.d/jd/jd-ui.el index f3a39bc..ccaf369 100755 --- a/.emacs.d/jd/jd-ui.el +++ b/.emacs.d/jd/jd-ui.el | |||
| @@ -29,31 +29,25 @@ | |||
| 29 | 29 | ||
| 30 | (require 'diminish) | 30 | (require 'diminish) |
| 31 | 31 | ||
| 32 | (jd/use-package doom-modeline "emacs-doom-modeline" | 32 | (use-package! doom-modeline "emacs-doom-modeline" |
| 33 | :config | 33 | :config |
| 34 | (doom-modeline-mode)) | 34 | (doom-modeline-mode)) |
| 35 | 35 | ||
| 36 | (jd/use-package solarized-theme "emacs-solarized-theme" | 36 | (use-package! solarized-theme "emacs-solarized-theme" |
| 37 | :config | 37 | :config |
| 38 | (load-theme 'solarized-dark-high-contrast t)) | 38 | (load-theme 'solarized-dark-high-contrast t)) |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | (jd/use-package diminish "emacs-diminish") | 41 | (use-package! diminish "emacs-diminish") |
| 42 | 42 | ||
| 43 | (jd/use-package hl-todo "emacs-hl-todo" | 43 | (use-package! hl-todo "emacs-hl-todo" |
| 44 | :init | 44 | :init |
| 45 | (setq hl-todo-keyword-faces | 45 | (setq hl-todo-keyword-faces |
| 46 | '(("TODO" . "#FF0000") | 46 | '(("TODO" . "#FF0000") |
| 47 | ("FIXME" . "#FF0000") | 47 | ("FIXME" . "#FF0000") |
| 48 | ("DEBUG" . "#A020F0"))) | 48 | ("DEBUG" . "#A020F0"))) |
| 49 | :config | 49 | :config |
| 50 | (global-hl-todo-mode 1)) | 50 | (global-hl-todo-mode 1)) |
| 51 | |||
| 52 | (defun jd/switch-buffer () | ||
| 53 | (interactive) | ||
| 54 | (let ((completion-regexp-list '("\\`[^*]" | ||
| 55 | "\\`\\([^T]\\|T\\($\\|[^A]\\|A\\($\\|[^G]\\|G\\($\\|[^S]\\|S.\\)\\)\\)\\).*"))) | ||
| 56 | (call-interactively 'counsel-switch-buffer))) | ||
| 57 | 51 | ||
| 58 | (defvar jd/load-theme-hook nil) | 52 | (defvar jd/load-theme-hook nil) |
| 59 | (defun jd/load-theme () | 53 | (defun jd/load-theme () |
| @@ -61,41 +55,29 @@ | |||
| 61 | (counsel-load-theme) | 55 | (counsel-load-theme) |
| 62 | (run-hooks 'jd/load-theme-hook)) | 56 | (run-hooks 'jd/load-theme-hook)) |
| 63 | 57 | ||
| 64 | (jd/use-package ivy "emacs-ivy" | 58 | (use-package! ivy "emacs-ivy" |
| 65 | :diminish | 59 | :diminish |
| 66 | :bind | 60 | :bind |
| 67 | (("C-s" . swiper)) | 61 | (("C-s" . swiper)) |
| 68 | :config | 62 | :config |
| 69 | (ivy-mode 1)) | 63 | (ivy-mode 1)) |
| 70 | |||
| 71 | (jd/use-package counsel "emacs-counsel" | ||
| 72 | :diminish t | ||
| 73 | :config | ||
| 74 | (counsel-mode 1) | ||
| 75 | 64 | ||
| 76 | (jd/leader-key-def | 65 | (use-package! counsel "emacs-counsel" |
| 77 | "t" '(:ignore t :which-key "Toggle") | 66 | :diminish t |
| 78 | "tT" '(toggle-truncate-lines :which-key "Toggle truncate lines") | 67 | :config |
| 79 | "tt" '(jd/load-theme :which-key "Choose theme")) | 68 | (counsel-mode 1)) |
| 80 | 69 | ||
| 81 | (jd/leader-key-def | 70 | (use-package! which-key "emacs-which-key" |
| 82 | "bb" '(jd/switch-buffer :which-key "Buffer switch") | 71 | :diminish |
| 83 | "ba" '(counsel-switch-buffer :which-key "Buffer switch") | 72 | :config |
| 84 | "b" '(:ignore t :which-key "Buffer") | 73 | (which-key-mode) |
| 85 | "," '(counsel-switch-buffer :which-key "Buffer switch"))) | 74 | (setq which-key-idle-delay 0.3)) |
| 86 | 75 | ||
| 87 | (jd/use-package which-key "emacs-which-key" | 76 | (use-package! all-the-icons "emacs-all-the-icons") |
| 88 | :diminish | ||
| 89 | :config | ||
| 90 | (which-key-mode) | ||
| 91 | (setq which-key-idle-delay 0.3)) | ||
| 92 | 77 | ||
| 93 | (jd/use-package all-the-icons "emacs-all-the-icons") | 78 | (use-package! beacon "emacs-beacon" |
| 94 | 79 | :config | |
| 95 | 80 | (beacon-mode 1)) | |
| 96 | (jd/use-package beacon "emacs-beacon" | ||
| 97 | :config | ||
| 98 | (beacon-mode 1)) | ||
| 99 | 81 | ||
| 100 | (setq display-time-string-forms | 82 | (setq display-time-string-forms |
| 101 | '(" " 24-hours ":" minutes " ")) | 83 | '(" " 24-hours ":" minutes " ")) |
| @@ -103,7 +85,7 @@ | |||
| 103 | (when jd/exwm-p | 85 | (when jd/exwm-p |
| 104 | (display-battery-mode) | 86 | (display-battery-mode) |
| 105 | (display-time-mode)) | 87 | (display-time-mode)) |
| 106 | 88 | ||
| 107 | (provide 'jd-ui) | 89 | (provide 'jd-ui) |
| 108 | 90 | ||
| 109 | ;;; jd-ui.el ends here | 91 | ;;; jd-ui.el ends here |
