|
|
@ -1,38 +1,37 @@ |
|
|
|
;;; custom-packages --- Provide all the use-package declarations |
|
|
|
;;; |
|
|
|
|
|
|
|
;;; Commentary: |
|
|
|
;;; |
|
|
|
;;;;; See https://github.com/jwiegley/use-package for help |
|
|
|
;;;;; USE PACKAGE help |
|
|
|
;;;;; (use-package package-here |
|
|
|
;;;;; :commands (cmd cmd-all cmd-etc) ;; List commands used to ":defer" the package |
|
|
|
;;;;; :bind-keymap |
|
|
|
;;;;; ("M-q" . package-here-keymap) ;; Setup an entire keymap using Prefix "M-q" |
|
|
|
;;;;; :bind |
|
|
|
;;;;; (("M-s" . cmd) ;; Available Globally |
|
|
|
;;;;; :map here-mode-map |
|
|
|
;;;;; ("C-t" . cmd-all) ;; Available only in "here-mode" |
|
|
|
;;;;; ("C-e" . cmd-etc)) ;; Available only in "here-mode" |
|
|
|
;;;;; :init |
|
|
|
;;;;; (setq stuff t) ;; declar vars etc... |
|
|
|
;;;;; :config |
|
|
|
;;;;; (here-mode 1) ;; eval stuff here after the init |
|
|
|
;;;;; |
|
|
|
;;;;; (use-package ruby-mode |
|
|
|
;;;;; :mode "\\.rb\\'" |
|
|
|
;;;;; :interpreter "ruby" |
|
|
|
;;;;; |
|
|
|
;;;;; ;; OR when the package name isn't the same as the =mode= |
|
|
|
;;;;; (use-package python |
|
|
|
;;;;; :mode ("\\.py\\'" . python-mode) |
|
|
|
;;;;; :interpreter ("python" . python-mode)) |
|
|
|
;;;;; |
|
|
|
;;;;; USE ":defer" when you aren't using either :commands, :bind, :bind*, :bind-keymap, :bind-keymap*, :mode, :interpreter, or :hook |
|
|
|
;;;;; (use-package deferred-package |
|
|
|
;;;;; :defer t) |
|
|
|
;;; |
|
|
|
;; |
|
|
|
;; See https://github.com/jwiegley/use-package for help |
|
|
|
;; USE PACKAGE help |
|
|
|
;; (use-package package-here |
|
|
|
;; :commands (cmd cmd-all cmd-etc) ;; List commands used to ":defer" the package |
|
|
|
;; :bind-keymap |
|
|
|
;; ("M-q" . package-here-keymap) ;; Setup an entire keymap using Prefix "M-q" |
|
|
|
;; :bind |
|
|
|
;; (("M-s" . cmd) ;; Available Globally |
|
|
|
;; :map here-mode-map |
|
|
|
;; ("C-t" . cmd-all) ;; Available only in "here-mode" |
|
|
|
;; ("C-e" . cmd-etc)) ;; Available only in "here-mode" |
|
|
|
;; :init |
|
|
|
;; (setq stuff t) ;; declar vars etc... |
|
|
|
;; :config |
|
|
|
;; (here-mode 1) ;; eval stuff here after the init |
|
|
|
;; |
|
|
|
;; (use-package ruby-mode |
|
|
|
;; :mode "\\.rb\\'" |
|
|
|
;; :interpreter "ruby" |
|
|
|
;; |
|
|
|
;; ;; OR when the package name isn't the same as the =mode= |
|
|
|
;; (use-package python |
|
|
|
;; :mode ("\\.py\\'" . python-mode) |
|
|
|
;; :interpreter ("python" . python-mode)) |
|
|
|
;; |
|
|
|
;; USE ":defer" when you aren't using either :commands, :bind, :bind*, :bind-keymap, :bind-keymap*, :mode, :interpreter, or :hook |
|
|
|
;; (use-package deferred-package |
|
|
|
;; :defer t) |
|
|
|
|
|
|
|
;;; Code: |
|
|
|
;;; |
|
|
|
|
|
|
|
;; https://github.com/jwiegley/use-package/blob/master/bind-key.el |
|
|
|
(use-package bind-key |
|
|
@ -84,11 +83,35 @@ |
|
|
|
|
|
|
|
;; https://github.com/Malabarba/beacon |
|
|
|
(use-package beacon |
|
|
|
:diminish |
|
|
|
:ensure t |
|
|
|
:commands beacon-mode |
|
|
|
:demand t |
|
|
|
:init |
|
|
|
(setq beacon-size 80)) |
|
|
|
(setq beacon-size 30 |
|
|
|
beacon-color "#5B6268" |
|
|
|
beacon-blink-delay 0.2 |
|
|
|
beacon-blink-duration 0.5 |
|
|
|
beacon-blink-when-focused t) |
|
|
|
(beacon-mode 1)) |
|
|
|
|
|
|
|
;; https://github.com/iqbalansari/emacs-emojify |
|
|
|
(use-package emojify |
|
|
|
:ensure t |
|
|
|
:defer 15 |
|
|
|
:config |
|
|
|
(global-emojify-mode 1)) |
|
|
|
|
|
|
|
;; https://github.com/hrs/engine-mode |
|
|
|
(use-package engine-mode |
|
|
|
:ensure t |
|
|
|
:defer 5 |
|
|
|
:commands (engine/get-query engine/execute-search) |
|
|
|
:config |
|
|
|
(defengine google "https://www.google.com/search?q=%s" |
|
|
|
:keybinding "g") |
|
|
|
(defengine duckduckgo "https://duckduckgo.com/?q=%s" |
|
|
|
:keybinding "d") |
|
|
|
(engine-mode 1)) |
|
|
|
|
|
|
|
;; https://github.com/coldnew/linum-relative |
|
|
|
(use-package linum-relative |
|
|
@ -115,11 +138,19 @@ |
|
|
|
:ensure t |
|
|
|
:after (all-the-icons minions) |
|
|
|
:hook (after-init . doom-modeline-mode) |
|
|
|
:commands (doom-modeline-def-modeline doom-modeline-set-modeline) |
|
|
|
:init |
|
|
|
(setq doom-modeline-height 40) |
|
|
|
(setq doom-modeline-bar-width 6) |
|
|
|
(setq doom-modeline-checker-simple-format nil) |
|
|
|
(setq doom-modeline-minor-modes (featurep 'minions)) |
|
|
|
:config |
|
|
|
(doom-modeline-def-modeline 'leo/custom-modeline |
|
|
|
'(bar matches buffer-info remote-host buffer-position parrot selection-info) |
|
|
|
'(misc-info minor-modes input-method buffer-encoding major-mode process vcs checker " ")) |
|
|
|
(defun leo/setup-custom-doom-modeline () |
|
|
|
(doom-modeline-set-modeline 'leo/custom-modeline 'default)) |
|
|
|
(add-hook 'doom-modeline-mode-hook 'leo/setup-custom-doom-modeline) |
|
|
|
) |
|
|
|
|
|
|
|
(use-package dashboard |
|
|
@ -142,11 +173,15 @@ |
|
|
|
|
|
|
|
(use-package helm |
|
|
|
:ensure t |
|
|
|
:commands (helm-M-x helm-buffers-list helm-find-files helm-candidate-number-at-point) |
|
|
|
:demand t |
|
|
|
:bind |
|
|
|
("M-x" . helm-M-x) |
|
|
|
("C-c b" . helm-buffers-list) |
|
|
|
("C-x C-f" . helm-find-files)) |
|
|
|
("C-x C-f" . helm-find-files) |
|
|
|
:config |
|
|
|
(declare-function helm-candidate-number-at-point "helm.el") |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/emacsorphanage/helm-swoop |
|
|
|
(use-package helm-swoop |
|
|
@ -346,7 +381,11 @@ |
|
|
|
;; https://github.com/flycheck/flycheck |
|
|
|
(use-package flycheck |
|
|
|
:ensure t |
|
|
|
:init (global-flycheck-mode)) |
|
|
|
:preface |
|
|
|
(defvar flycheck-emacs-lisp-load-path) |
|
|
|
:init |
|
|
|
(setq flycheck-emacs-lisp-load-path 'inherit) |
|
|
|
(global-flycheck-mode)) |
|
|
|
|
|
|
|
;; https://orgmode.org/elpa.html |
|
|
|
(use-package org |
|
|
@ -458,5 +497,4 @@ |
|
|
|
|
|
|
|
|
|
|
|
(provide 'custom-packages) |
|
|
|
|
|
|
|
;;; custom-packages.el ends here |