|
|
@ -33,26 +33,15 @@ |
|
|
|
|
|
|
|
;;; Code: |
|
|
|
|
|
|
|
;; https://github.com/jwiegley/use-package/blob/master/bind-key.el |
|
|
|
(use-package bind-key |
|
|
|
:ensure t |
|
|
|
:bind |
|
|
|
("C-<tab>" . leo/tidy) |
|
|
|
("C-;" . leo/comment-or-uncomment-region-or-line) |
|
|
|
("C-c e" . leo/find-user-init-file) |
|
|
|
("M-q" . leo/kill-this-buffer-unless-scratch) |
|
|
|
("C-c d" . leo/duplicate-thing) |
|
|
|
("M-n" . leo/jump-to-next-symbol) |
|
|
|
("M-p" . leo/jump-to-prev-symbol) |
|
|
|
("M-u" . upcase-dwim) |
|
|
|
("M-c" . capitalize-dwim) |
|
|
|
("M-l" . downcase-dwim) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/myrjola/diminish.el |
|
|
|
(use-package diminish |
|
|
|
:ensure t |
|
|
|
:demand t) |
|
|
|
:demand t |
|
|
|
) |
|
|
|
|
|
|
|
;; https://elpa.gnu.org/packages/delight.html |
|
|
|
(use-package delight |
|
|
|
:ensure t) |
|
|
|
|
|
|
|
;; https://github.com/winterTTr/ace-jump-mode |
|
|
|
(use-package ace-jump-mode |
|
|
@ -62,6 +51,7 @@ |
|
|
|
|
|
|
|
;; https://github.com/abo-abo/ace-window |
|
|
|
(use-package ace-window |
|
|
|
:disabled |
|
|
|
:ensure t |
|
|
|
:bind |
|
|
|
([remap other-window] . ace-window) |
|
|
@ -70,6 +60,7 @@ |
|
|
|
|
|
|
|
;; https://github.com/hlissner/emacs-doom-themes |
|
|
|
(use-package doom-themes |
|
|
|
:disabled |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
(load-theme 'doom-one t)) |
|
|
@ -81,8 +72,16 @@ |
|
|
|
:config |
|
|
|
(load-theme 'base16-onedark t)) |
|
|
|
|
|
|
|
;; https://github.com/NicolasPetton/zerodark-theme |
|
|
|
(use-package zerodark-theme |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
(load-theme 'zerodark t) |
|
|
|
(zerodark-setup-modeline-format)) |
|
|
|
|
|
|
|
;; https://github.com/Malabarba/beacon |
|
|
|
(use-package beacon |
|
|
|
:diminish |
|
|
|
:ensure t |
|
|
|
:commands beacon-mode |
|
|
|
:demand t |
|
|
@ -107,14 +106,18 @@ |
|
|
|
:defer 5 |
|
|
|
:commands (engine/get-query engine/execute-search) |
|
|
|
:config |
|
|
|
;; C-x / to start |
|
|
|
(defengine google "https://www.google.com/search?q=%s" |
|
|
|
:keybinding "g") |
|
|
|
(defengine duckduckgo "https://duckduckgo.com/?q=%s" |
|
|
|
:keybinding "d") |
|
|
|
(defengine melpa "https://melpa.org/#/?q=%s" |
|
|
|
:keybinding "m") |
|
|
|
(engine-mode 1)) |
|
|
|
|
|
|
|
;; https://github.com/coldnew/linum-relative |
|
|
|
(use-package linum-relative |
|
|
|
:disabled |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
(linum-relative-mode)) |
|
|
@ -124,19 +127,19 @@ |
|
|
|
:ensure t |
|
|
|
:hook (prog-mode . rainbow-delimiters-mode)) |
|
|
|
|
|
|
|
;; rainbow-mode |
|
|
|
(use-package rainbow-mode |
|
|
|
:ensure t |
|
|
|
:hook prog-mode) |
|
|
|
|
|
|
|
;; M-x all-the-icons-install-fonts |
|
|
|
(use-package all-the-icons |
|
|
|
:ensure t) |
|
|
|
|
|
|
|
;; https://github.com/tarsius/minions |
|
|
|
(use-package minions |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
(minions-mode 1)) |
|
|
|
|
|
|
|
(use-package doom-modeline |
|
|
|
:disabled |
|
|
|
:ensure t |
|
|
|
:after (all-the-icons minions) |
|
|
|
:after (all-the-icons) |
|
|
|
:hook (after-init . doom-modeline-mode) |
|
|
|
:commands (doom-modeline-def-modeline doom-modeline-set-modeline) |
|
|
|
:init |
|
|
@ -146,8 +149,8 @@ |
|
|
|
(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 " ")) |
|
|
|
'(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) |
|
|
@ -160,10 +163,10 @@ |
|
|
|
:init |
|
|
|
(setq dashboard-items '((recents . 6) |
|
|
|
(bookmarks . 5) |
|
|
|
;; (projects . 5) |
|
|
|
(projects . 5) |
|
|
|
(agenda . 5))) |
|
|
|
(setq dashboard-center-content t) |
|
|
|
(setq dashboard-banner-logo-title "Let's begin...") |
|
|
|
(setq dashboard-banner-logo-title "Let's do this...") |
|
|
|
(setq dashboard-startup-banner 1) |
|
|
|
(setq dashboard-show-shortcuts t) |
|
|
|
(setq show-week-agenda-p t) |
|
|
@ -171,34 +174,45 @@ |
|
|
|
:config |
|
|
|
(dashboard-setup-startup-hook)) |
|
|
|
|
|
|
|
(use-package helm |
|
|
|
;; counsel |
|
|
|
(use-package counsel |
|
|
|
: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) |
|
|
|
;; ("M-x" . counsel-M-x) |
|
|
|
("C-c k" . counsel-rg) |
|
|
|
("C-x C-f" . counsel-find-file) |
|
|
|
("C-x f" . counsel-recentf) |
|
|
|
("C-x C-d" . counsel-dired) |
|
|
|
("C-x p" . counsel-package) |
|
|
|
("C-x b" . counsel-bookmark) |
|
|
|
("C-x c" . counsel-colors-web) |
|
|
|
("C-c C-d" . counsel-org-capture) |
|
|
|
|
|
|
|
;; Describe Replacements |
|
|
|
("C-h f" . counsel-describe-function) |
|
|
|
("C-h v" . counsel-describe-variable) |
|
|
|
("C-h b" . counsel-descbinds) |
|
|
|
|
|
|
|
("M-y" . counsel-yank-pop) |
|
|
|
;; Ivy |
|
|
|
("C-c b" . ivy-switch-buffer) |
|
|
|
("C-c c" . ivy-resume) |
|
|
|
|
|
|
|
;; Swiper |
|
|
|
("C-s" . swiper) |
|
|
|
:config |
|
|
|
(declare-function helm-candidate-number-at-point "helm.el") |
|
|
|
(ivy-mode 1) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/emacsorphanage/helm-swoop |
|
|
|
(use-package helm-swoop |
|
|
|
;; https://github.com/DarwinAwardWinner/amx |
|
|
|
(use-package amx |
|
|
|
:ensure t |
|
|
|
:after (helm) |
|
|
|
:bind |
|
|
|
("C-s" . helm-swoop) |
|
|
|
:config |
|
|
|
;; If you prefer fuzzy matching |
|
|
|
(setq helm-swoop-use-fuzzy-match t)) |
|
|
|
|
|
|
|
;; https://github.com/syohex/emacs-helm-ag |
|
|
|
(use-package helm-ag |
|
|
|
:ensure t |
|
|
|
:after (helm) |
|
|
|
:bind |
|
|
|
("C-c k" . helm-ag)) |
|
|
|
:demand t |
|
|
|
:commands (execute-extended-command) |
|
|
|
:after (counsel) |
|
|
|
:init |
|
|
|
(amx-mode 1)) |
|
|
|
|
|
|
|
;; https://github.com/magnars/expand-region.el |
|
|
|
(use-package expand-region |
|
|
@ -207,6 +221,18 @@ |
|
|
|
("C-@" . er/expand-region) |
|
|
|
("C-#" . er/contract-region)) |
|
|
|
|
|
|
|
;; https://github.com/thanhvg/emacs-howdoyou |
|
|
|
(use-package howdoyou |
|
|
|
:ensure t |
|
|
|
:commands (howdoyou-query howdoyou-next-link howdoyou-previous-link howdoyou-go-back-to-first-link howdoyou-reload-link) |
|
|
|
:bind |
|
|
|
("C-c h q" . howdoyou-query) |
|
|
|
("C-c h n" . howdoyou-next-link) |
|
|
|
("C-c h p" . howdoyou-previous-link) |
|
|
|
("C-c h f" . howdoyou-go-back-to-first-link) |
|
|
|
("C-c h r" . howdoyou-reload-link) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/magnars/multiple-cursors.el |
|
|
|
(use-package multiple-cursors |
|
|
|
:ensure t |
|
|
@ -218,6 +244,7 @@ |
|
|
|
|
|
|
|
;; https://github.com/joodland/bm |
|
|
|
(use-package bm |
|
|
|
:disabled |
|
|
|
:ensure t |
|
|
|
:demand t |
|
|
|
:bind (("C-x b b" . bm-toggle) |
|
|
@ -257,8 +284,14 @@ |
|
|
|
;; link |
|
|
|
(use-package elfeed |
|
|
|
:ensure t |
|
|
|
:commands (elfeed) |
|
|
|
:bind ("C-x C-l e" . elfeed) |
|
|
|
:commands (elfeed elfeed-search-set-filter) |
|
|
|
:bind |
|
|
|
(("C-x C-l e" . elfeed) |
|
|
|
:map elfeed-search-mode-map |
|
|
|
("a" . (lambda () (interactive) (elfeed-search-set-filter ""))) |
|
|
|
("e" . (lambda () (interactive) (elfeed-search-set-filter "+emacs"))) |
|
|
|
("d" . (lambda () (interactive) (elfeed-search-set-filter "+daily"))) |
|
|
|
("x" . (lambda () (interactive) (elfeed-search-set-filter "xkcd")))) |
|
|
|
:init |
|
|
|
(setq elfeed-feeds |
|
|
|
'( |
|
|
@ -271,7 +304,13 @@ |
|
|
|
("http://planet.emacsen.org/atom.xml" emacs) |
|
|
|
("http://feeds.feedburner.com/XahsEmacsBlog" emacs) |
|
|
|
("http://emacs.stackexchange.com/feeds" emacs) |
|
|
|
))) |
|
|
|
("https://www.google.com/alerts/feeds/13353713273807811484/2710948715805064535" tesla) |
|
|
|
("https://www.google.com/alerts/feeds/13353713273807811484/17638090915837343269" pixel4) |
|
|
|
("https://www.google.com/alerts/feeds/13353713273807811484/14416938028701328804" stadia) |
|
|
|
)) |
|
|
|
:config |
|
|
|
(elfeed-update) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/rmuslimov/browse-at-remote |
|
|
|
(use-package browse-at-remote |
|
|
@ -279,19 +318,20 @@ |
|
|
|
|
|
|
|
;; https://github.com/justbur/emacs-which-key |
|
|
|
(use-package which-key |
|
|
|
:diminish |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
(which-key-setup-minibuffer) |
|
|
|
(which-key-mode)) |
|
|
|
|
|
|
|
;; https://github.com/lewang/fic-mode |
|
|
|
;; TODO https://github.com/lewang/fic-mode |
|
|
|
(use-package fic-mode |
|
|
|
:ensure t |
|
|
|
:hook prog-mode |
|
|
|
:init |
|
|
|
(defface fic-face '((t :foreground "red" :weight bold)) "Specify face used for fic-mode highlighting" :group 'basic-faces) |
|
|
|
(defface fic-author-face '((t :foreground "red" :underline t)) "Specify face used for fic-mode highlighting" :group 'basic-faces) |
|
|
|
) |
|
|
|
:hook (prog-mode js-mode javascript-mode) |
|
|
|
:commands fic-mode |
|
|
|
:custom-face |
|
|
|
(fic-face ((t :foreground "red" :weight bold))) |
|
|
|
(fic-author-face ((t :foreground "red" :underline t)))) |
|
|
|
|
|
|
|
;; https://github.com/joaotavora/yasnippet |
|
|
|
(use-package yasnippet |
|
|
@ -310,7 +350,17 @@ |
|
|
|
:ensure t |
|
|
|
:defer 5 |
|
|
|
:commands (company-mode) |
|
|
|
:hook (prog-mode . company-mode)) |
|
|
|
:hook (prog-mode . company-mode) |
|
|
|
:bind |
|
|
|
(:map company-active-map |
|
|
|
("M-n" . nil) |
|
|
|
("M-p" . nil) |
|
|
|
("C-n" . company-select-next) |
|
|
|
("C-p" . company-select-previous)) |
|
|
|
:config |
|
|
|
(setq company-idle-delay 0.1) |
|
|
|
(setq company-minimum-prefix-length 4) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/pashky/restclient.el |
|
|
|
(use-package restclient |
|
|
@ -326,17 +376,38 @@ |
|
|
|
(use-package magit |
|
|
|
:commands magit-status |
|
|
|
:ensure t |
|
|
|
:init |
|
|
|
(setq magit-completing-read-function 'helm-completing-read-default-handler) |
|
|
|
:bind |
|
|
|
("C-x g" . magit-status) |
|
|
|
("C-c g" . magit-status)) |
|
|
|
|
|
|
|
;; https://github.com/bbatsov/projectile |
|
|
|
(use-package projectile |
|
|
|
:delight '(:eval (concat " [" (projectile-project-name) "]")) |
|
|
|
:ensure t |
|
|
|
:bind-keymap |
|
|
|
("C-c p" . projectile-command-map) |
|
|
|
:init |
|
|
|
;; (setq projectile-mode-line-prefix " P") |
|
|
|
(setq projectile-completion-system 'ivy) |
|
|
|
:config |
|
|
|
(projectile-mode 1) |
|
|
|
;; (projectile-register-project-type 'npm '("package.json") |
|
|
|
;; :compile "npm install" |
|
|
|
;; :test "npm test" |
|
|
|
;; :run "npm start" |
|
|
|
;; :test-suffix ".test") |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/rudolfolah/angularjs-mode |
|
|
|
(use-package angular-mode |
|
|
|
:ensure t |
|
|
|
:defer t |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/magnars/angular-snippets.el |
|
|
|
(use-package angular-snippets |
|
|
|
:ensure t |
|
|
|
:defer t |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/magit/git-modes |
|
|
@ -380,6 +451,7 @@ |
|
|
|
|
|
|
|
;; https://github.com/flycheck/flycheck |
|
|
|
(use-package flycheck |
|
|
|
:diminish |
|
|
|
:ensure t |
|
|
|
:preface |
|
|
|
(defvar flycheck-emacs-lisp-load-path) |
|
|
@ -438,21 +510,42 @@ |
|
|
|
(verbatim . "<code class=\"verbatim\">%s</code>")) |
|
|
|
) |
|
|
|
:config |
|
|
|
(when (version<= "9.2" (org-version)) |
|
|
|
(require 'org-tempo)) |
|
|
|
(org-babel-do-load-languages 'org-babel-load-languages '((js . t) |
|
|
|
(shell . t) |
|
|
|
(emacs-lisp . t))) |
|
|
|
(add-to-list 'org-structure-template-alist |
|
|
|
(list "e" (concat "#+BEGIN_SRC emacs-lisp :results silent\n" |
|
|
|
"\n" |
|
|
|
"#+END_SRC"))) |
|
|
|
(add-to-list 'org-structure-template-alist |
|
|
|
(list "j" (concat "#+BEGIN_SRC js :cmd \"/usr/local/bin/babel-node\" :results output code\n" |
|
|
|
"\n" |
|
|
|
"#+END_SRC"))) |
|
|
|
(add-to-list 'org-structure-template-alist |
|
|
|
(list "r" (concat "#+BEGIN_SRC restclient :results raw\n" |
|
|
|
"\n" |
|
|
|
"#+END_SRC"))) |
|
|
|
(setq org-structure-template-alist |
|
|
|
'(("r" . "src restclient :results raw") |
|
|
|
("j" . "src js :cmd \"/usr/local/bin/babel-node\" :results output code") |
|
|
|
("e" . "src emacs-lisp :results silent") |
|
|
|
("a" . "export ascii") |
|
|
|
("c" . "center") |
|
|
|
("C" . "comment") |
|
|
|
("E" . "export") |
|
|
|
("h" . "export html") |
|
|
|
("l" . "export latex") |
|
|
|
("q" . "quote") |
|
|
|
("s" . "src") |
|
|
|
("v" . "verse"))) |
|
|
|
(defconst checkbox-fontlock-keywords-alist |
|
|
|
(mapcar (lambda (regex-char-pair) |
|
|
|
`(,(car regex-char-pair) |
|
|
|
(0 (prog1 () |
|
|
|
(compose-region (match-beginning 1) |
|
|
|
(match-end 1) |
|
|
|
,(concat (list ?\C-i) |
|
|
|
(list (decode-char 'ucs (cadr regex-char-pair))))))))) |
|
|
|
'(("\\(\\[ \\]\\)" #XF096);2B1C |
|
|
|
("\\(\\[-\\]\\)" #XF147);29C7;F458 |
|
|
|
("\\(\\[X\\]\\)" #XF046);2BBD |
|
|
|
))) |
|
|
|
|
|
|
|
(defun add-checkbox-symbol-keywords () |
|
|
|
"Add checkbox font to font-lock." |
|
|
|
(font-lock-add-keywords nil checkbox-fontlock-keywords-alist)) |
|
|
|
|
|
|
|
(add-hook 'org-mode-hook 'add-checkbox-symbol-keywords) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/sabof/org-bullets |
|
|
@ -484,8 +577,6 @@ |
|
|
|
"* %a\n%?\n") |
|
|
|
("d" "store link w/drawer" entry (file+olp org-default-notes-file "Links" "Unfiled") |
|
|
|
"* %?\n%l\n:COPIED_TEXT:\n %i\n:END:\n") |
|
|
|
("f" "dotfile" entry (file+headline "~/Dropbox/Org/dotfiles.org" "Other") |
|
|
|
"* %?\n:PROPERTIES:\n:CUSTOM_ID: %(org-id-get-create)\n:END:\n") |
|
|
|
)) |
|
|
|
) |
|
|
|
|
|
|
@ -495,6 +586,57 @@ |
|
|
|
:defer t |
|
|
|
:commands (org-link-minor-mode)) |
|
|
|
|
|
|
|
;; https://github.com/marsmining/ox-twbs |
|
|
|
(use-package ox-twbs |
|
|
|
:ensure t |
|
|
|
:demand t |
|
|
|
:after (org)) |
|
|
|
|
|
|
|
;; https://github.com/hniksic/emacs-htmlize |
|
|
|
(use-package htmlize |
|
|
|
:ensure t |
|
|
|
:defer 5) |
|
|
|
|
|
|
|
;; https://github.com/jwiegley/use-package/blob/master/bind-key.el |
|
|
|
(use-package bind-key |
|
|
|
:ensure t |
|
|
|
:bind |
|
|
|
("C-<tab>" . leo/tidy) |
|
|
|
("C-;" . leo/comment-or-uncomment-region-or-line) |
|
|
|
("C-c e" . leo/find-user-init-file) |
|
|
|
("M-q" . leo/kill-this-buffer-unless-scratch) |
|
|
|
("C-c d" . leo/duplicate-thing) |
|
|
|
("M-n" . leo/jump-to-next-symbol) |
|
|
|
("M-p" . leo/jump-to-prev-symbol) |
|
|
|
("M-u" . upcase-dwim) |
|
|
|
("M-c" . capitalize-dwim) |
|
|
|
("M-l" . downcase-dwim) |
|
|
|
) |
|
|
|
|
|
|
|
;; https://github.com/nflath/sudo-edit |
|
|
|
(use-package sudo-edit |
|
|
|
:ensure t |
|
|
|
:defer t |
|
|
|
:commands (sudo-edit)) |
|
|
|
|
|
|
|
;; https://github.com/yuya373/emacs-slack |
|
|
|
(use-package slack |
|
|
|
:disabled |
|
|
|
:commands (slack-start) |
|
|
|
:init |
|
|
|
(setq slack-buffer-emojify t) |
|
|
|
(setq slack-prefer-current-team t) |
|
|
|
:config |
|
|
|
(advice-add 'slack-counts-update :override #'ignore) |
|
|
|
(slack-register-team |
|
|
|
:name "EC-Vlocity" |
|
|
|
:default t |
|
|
|
:client-id "noversion-1568385126.809" |
|
|
|
:client-secret "" |
|
|
|
:token "xoxc-538115686545-538717634210-755920422288-984144199ae517b9b68ddf733cbedbd18f77ec9e93788f7bb9725e476b67d5c1" ;;xoxp-538115686545-538717634210-753084048993-466bb2259d72a129118bd4d97b8c80b2" |
|
|
|
:subscribed-channels '(general vlocity) |
|
|
|
:full-and-display-names t)) |
|
|
|
|
|
|
|
|
|
|
|
(provide 'custom-packages) |
|
|
|
;;; custom-packages.el ends here |