From b1a6bb4290c43513a5d60c00956cd242bcb8ae73 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Fri, 24 Jul 2020 09:29:28 +0300 Subject: [PATCH] Convert themes and flycheck to packages --- 03hydra.el | 12 ++++++------ 06flycheck.el | 7 +++++++ themes/themes.el | 11 +++++++++-- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/03hydra.el b/03hydra.el index 8401194..0b22fd0 100644 --- a/03hydra.el +++ b/03hydra.el @@ -35,7 +35,7 @@ _d_: Deft _c_: Invalidate cache ("C" magit-checkout) ("M" magit-blame)) - (defhydra hydra-programming-actions (:color teal :hint nil) + (defhydra hydra-programming-menu (:color teal :hint nil) " Programming actions @@ -60,7 +60,7 @@ _s_: swiper ("y" company-yasnippet) ("m" company-complete)) - (defhydra hydra-window-actions (:color teal :hint nil) + (defhydra hydra-window-menu (:color teal :hint nil) " Window actions @@ -86,7 +86,7 @@ _v_: split vertically __: Move up ("p" previous-buffer) ("n" next-buffer)) - (defhydra hydra-language-context-actions (:color teal :hint nil) + (defhydra hydra-language-context-menu (:color teal :hint nil) " Context actions @@ -99,9 +99,9 @@ _r_: reload buffer ("r" revert-buffer-no-confirm)) :bind ("C-c p" . hydra-file-switcher-menu/body) - ("C-c c" . hydra-programming-actions/body) - ("C-c w" . hydra-window-actions/body) - ("C-c l" . hydra-language-context-actions/body)) + ("C-c c" . hydra-programming-menu/body) + ("C-c w" . hydra-window-menu/body) + ("C-c l" . hydra-language-context-menu/body)) (provide '03hydra) ;;; 03hydra.el ends here diff --git a/06flycheck.el b/06flycheck.el index 10a1815..103e933 100644 --- a/06flycheck.el +++ b/06flycheck.el @@ -1,6 +1,13 @@ +;;; 06flycheck -- summary +;;; Commentary: +;;; Code: + ;; Use flycheck globally to check syntax and compile languages (use-package flycheck :commands flycheck-define-checker :ensure t :defer t :config (global-flycheck-mode t)) + +(provide '06flycheck) +;;; 06flycheck.el ends here diff --git a/themes/themes.el b/themes/themes.el index 9cb9054..38b59ca 100644 --- a/themes/themes.el +++ b/themes/themes.el @@ -1,3 +1,7 @@ +;;; themes -- summary +;;; Commentary: +;;; Code: + ;; Use smart-mode-line (use-package smart-mode-line :ensure t @@ -33,8 +37,8 @@ (random 2) '(base16-atelier-forest-light base16-harmonic-light)))) (progn - (enable-theme 'base16-harmonic-light) - (setq base16-theme-256-color-source "base16-shell"))) + (setq base16-theme-256-color-source "base16-shell") + (enable-theme 'base16-atelier-forest-light))) ;; Set font face ;;;;;;;;;;;;;;;;;;;;;; Font configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -54,3 +58,6 @@ (set-face-attribute 'fringe nil :foreground (face-foreground 'default) :background (face-background 'default)) + +(provide 'themes) +;;; themes.el ends here