From da22ec3a3b0598a8faa84b4898dc7aa6cc3d3ac9 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sat, 30 Apr 2022 15:09:36 +0200 Subject: [PATCH] Modularized packages configs --- bundle/bundle--all-the-icons.el | 9 +++++ bundle/bundle--doom.el | 4 ++ bundle/bundle--gui.el | 69 +++++++------------------------- bundle/bundle--helpful.el | 5 +++ bundle/bundle--latex.elc | Bin 0 -> 755 bytes bundle/bundle--olivetti.el | 4 ++ bundle/bundle--shrface.el | 10 +++++ bundle/bundle--webjump.el | 8 ++++ 8 files changed, 54 insertions(+), 55 deletions(-) create mode 100644 bundle/bundle--all-the-icons.el create mode 100644 bundle/bundle--doom.el create mode 100644 bundle/bundle--helpful.el create mode 100644 bundle/bundle--latex.elc create mode 100644 bundle/bundle--olivetti.el create mode 100644 bundle/bundle--shrface.el create mode 100644 bundle/bundle--webjump.el diff --git a/bundle/bundle--all-the-icons.el b/bundle/bundle--all-the-icons.el new file mode 100644 index 00000000..02880c4a --- /dev/null +++ b/bundle/bundle--all-the-icons.el @@ -0,0 +1,9 @@ +(use-package all-the-icons + :if (display-graphic-p) + :commands all-the-icons-install-fonts + :init + (unless (find-font (font-spec :name "all-the-icons")) + (all-the-icons-install-fonts t))) +(use-package all-the-icons-dired + :if (display-graphic-p) + :hook (dired-mode . all-the-icons-dired-mode)) diff --git a/bundle/bundle--doom.el b/bundle/bundle--doom.el new file mode 100644 index 00000000..5b2073ee --- /dev/null +++ b/bundle/bundle--doom.el @@ -0,0 +1,4 @@ +(use-package doom-themes + :init (load-theme 'doom-nord t)) +(use-package doom-modeline + :init (doom-modeline-mode 1)) diff --git a/bundle/bundle--gui.el b/bundle/bundle--gui.el index a6ec6b65..4b469b17 100644 --- a/bundle/bundle--gui.el +++ b/bundle/bundle--gui.el @@ -7,69 +7,28 @@ ;; :config ;; (counsel-mode 1)) -(use-package all-the-icons - :if (display-graphic-p) - :commands all-the-icons-install-fonts - :init - (unless (find-font (font-spec :name "all-the-icons")) - (all-the-icons-install-fonts t))) - -(use-package all-the-icons-dired - :if (display-graphic-p) - :hook (dired-mode . all-the-icons-dired-mode)) - ;; (use-package ivy ;; :bind (("C-s" . swiper)) ;; :init ;; (ivy-mode 1)) -(use-package olivetti - :init (add-hook 'Info-mode-hook (lambda () (olivetti-mode) (setq olivetti-body-width 89))) - :custom (olivetti-body-width 84) - :bind ("" . olivetti-mode)) - -(use-package shrface - :init - (global-set-key (kbd "M-o") 'ace-window) - :config - (shrface-basic) - (shrface-trial) - (shrface-default-keybindings) - (setq shrface-href-versatile t - shrface-toggle-bullets t - shr-width nil)) - -(use-package ace-window) - -(use-package doom-modeline - :init (doom-modeline-mode 1)) - -(use-package doom-themes - :init (load-theme 'doom-nord t)) - -(use-package rainbow-delimiters - :hook (prog-mode . rainbow-delimiters-mode)) - -(use-package helpful - :commands (helpful-callable helpful-variable helpful-command helpful-key) - :bind - ([remap describe-command] . helpful-command) - ([remap describe-key] . helpful-key)) - -(use-package emojify - :commands emojify-mode) - ;; (use-package unicode-fonts ;; :config ;; (unicode-fonts-setup)) -(use-package webjump - :bind ("C-c j" . webjump) - :custom - (webjump-sites - (append '(("Wikipedia_de" . [simple-query - "de.wikipedia.org" - "https://de.wikipedia.org/wiki/" ""])) - webjump-sample-sites))) +(load "bundle--all-the-icons") +(load "bundle--olivetti") +(load "bundle--shrface") +(load "bundle--doom") +(load "bundle--helpful") +(load "bundle--webjump") + +(use-package ace-window) + +(use-package rainbow-delimiters + :hook (prog-mode . rainbow-delimiters-mode)) + +(use-package emojify + :commands emojify-mode) (use-package smartparens) diff --git a/bundle/bundle--helpful.el b/bundle/bundle--helpful.el new file mode 100644 index 00000000..2465ccd8 --- /dev/null +++ b/bundle/bundle--helpful.el @@ -0,0 +1,5 @@ +(use-package helpful + :commands (helpful-callable helpful-variable helpful-command helpful-key) + :bind + ([remap describe-command] . helpful-command) + ([remap describe-key] . helpful-key)) diff --git a/bundle/bundle--latex.elc b/bundle/bundle--latex.elc new file mode 100644 index 0000000000000000000000000000000000000000..2d66171757ac45baf0febd94aab0b4ecadadb9eb GIT binary patch literal 755 zcmbu6J#WG=5Qdra2fCh8RfP&i5C)1eRfqwpTe}g4!#2dKV@I~3w5b2Rmw=-5W5bdM zzwdK*zPoJkJiqDndQp~TFt=r;v=q%l8CaCaJshO-${I+gN!mE?DinZPgRO!p)h7nB zeG)b1YoR=BDGThq^dLSAmWqS0+y|%3&JW3TJ^%_K1+-Phvm~AU$ssJ|Fg5_UCLqE4 zuw{>=820osUoL?c=#U5c;;<=?Mu4}#(ZEK6w)msSr4vrb| z#x?qS5B>PfmdMZr#kGtnM@}o*m(qj=IeG5L" . olivetti-mode)) diff --git a/bundle/bundle--shrface.el b/bundle/bundle--shrface.el new file mode 100644 index 00000000..c04a958d --- /dev/null +++ b/bundle/bundle--shrface.el @@ -0,0 +1,10 @@ +(use-package shrface + :init + (global-set-key (kbd "M-o") 'ace-window) + :config + (shrface-basic) + (shrface-trial) + (shrface-default-keybindings) + (setq shrface-href-versatile t + shrface-toggle-bullets t + shr-width nil)) diff --git a/bundle/bundle--webjump.el b/bundle/bundle--webjump.el new file mode 100644 index 00000000..ce41c5a9 --- /dev/null +++ b/bundle/bundle--webjump.el @@ -0,0 +1,8 @@ +(use-package webjump + :bind ("C-c j" . webjump) + :custom + (webjump-sites + (append '(("Wikipedia_de" . [simple-query + "de.wikipedia.org" + "https://de.wikipedia.org/wiki/" ""])) + webjump-sample-sites)))