@ -33,6 +33,10 @@
;;; Code:
;;; Code:
;; https://melpa.org/#/async
( use-package async
:ensure t )
;; https://github.com/myrjola/diminish.el
;; https://github.com/myrjola/diminish.el
( use-package diminish
( use-package diminish
:ensure t
:ensure t
@ -49,29 +53,6 @@
( ( " C-c SPC " . just-one-space )
( ( " C-c SPC " . just-one-space )
( " M-SPC " . ace-jump-mode ) ) )
( " M-SPC " . ace-jump-mode ) ) )
;; https://github.com/abo-abo/ace-window
( use-package ace-window
:disabled
:ensure t
:bind
( [ remap other-window ] . ace-window )
:init
( setq aw-keys ' ( ?a ?s ?h ?t ?g ?y ?n ?e ?o ?i ) ) )
;; https://github.com/hlissner/emacs-doom-themes
( use-package doom-themes
:disabled
:ensure t
:config
( load-theme 'doom-one t ) )
;; https://github.com/belak/base16-emacs
( use-package base16-theme
:disabled
:ensure t
:config
( load-theme 'base16-onedark t ) )
;; https://github.com/NicolasPetton/zerodark-theme
;; https://github.com/NicolasPetton/zerodark-theme
( use-package zerodark-theme
( use-package zerodark-theme
:ensure t
:ensure t
@ -86,10 +67,10 @@
:commands beacon-mode
:commands beacon-mode
:demand t
:demand t
:init
:init
( setq beacon-size 3 0
( setq beacon-size 7 0
beacon-color " #5B6268 "
beacon-color " #5B6268 "
beacon-blink-delay 0.2
beacon-blink-duration 0.5
beacon-blink-delay 0.1
beacon-blink-duration 0.4
beacon-blink-when-focused t )
beacon-blink-when-focused t )
( beacon-mode 1 ) )
( beacon-mode 1 ) )
@ -108,20 +89,17 @@
:config
:config
;; C-x / to start
;; C-x / to start
( defengine google " https://www.google.com/search?q=%s "
( defengine google " https://www.google.com/search?q=%s "
:keybinding " a " )
( defengine github " https://github.com/search?q=%s "
:keybinding " g " )
:keybinding " g " )
( defengine vlocity " https://success.vlocity.com/s/searchunifylightning?searchString=%s "
:keybinding " v " )
( defengine duckduckgo " https://duckduckgo.com/?q=%s "
( defengine duckduckgo " https://duckduckgo.com/?q=%s "
:keybinding " d " )
:keybinding " d " )
( defengine melpa " https://melpa.org/#/?q=%s "
( defengine melpa " https://melpa.org/#/?q=%s "
:keybinding " m " )
:keybinding " m " )
( engine-mode 1 ) )
( engine-mode 1 ) )
;; https://github.com/coldnew/linum-relative
( use-package linum-relative
:disabled
:ensure t
:config
( linum-relative-mode ) )
;; https://github.com/Fanael/rainbow-delimiters
;; https://github.com/Fanael/rainbow-delimiters
( use-package rainbow-delimiters
( use-package rainbow-delimiters
:ensure t
:ensure t
@ -136,32 +114,13 @@
( use-package all-the-icons
( use-package all-the-icons
:ensure t )
:ensure t )
( use-package doom-modeline
:disabled
:ensure t
:after ( all-the-icons )
: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 )
)
;; https://github.com/emacs-dashboard/emacs-dashboard
( use-package dashboard
( use-package dashboard
:ensure t
:ensure t
:preface
:preface
( defvar show-week-agenda-p )
( defvar show-week-agenda-p )
:init
:init
( setq dashboard-items ' ( ( recents . 6 )
( setq dashboard-items ' ( ( recents . 10 )
( bookmarks . 5 )
( bookmarks . 5 )
( projects . 5 )
( projects . 5 )
( agenda . 5 ) ) )
( agenda . 5 ) ) )
@ -179,7 +138,7 @@
:ensure t
:ensure t
:demand t
:demand t
:bind
:bind
;; ("M-x" . counsel-M-x )
( " M-x " . counsel-M-x )
( " C-c k " . counsel-rg )
( " C-c k " . counsel-rg )
( " C-x C-f " . counsel-find-file )
( " C-x C-f " . counsel-find-file )
( " C-x f " . counsel-recentf )
( " C-x f " . counsel-recentf )
@ -205,14 +164,10 @@
( ivy-mode 1 )
( ivy-mode 1 )
)
)
;; https://github.com/DarwinAwardWinner/amx
( use-package amx
( use-package amx
:ensure t
:ensure t
:demand t
:commands ( execute-extended-command )
:after ( counsel )
:init
( amx-mode 1 ) )
:config ( amx-mode 1 )
)
;; https://github.com/magnars/expand-region.el
;; https://github.com/magnars/expand-region.el
( use-package expand-region
( use-package expand-region
@ -242,46 +197,7 @@
( " C-{ " . mc/mark-previous-like-this )
( " C-{ " . mc/mark-previous-like-this )
( " C-( " . mc/unmark-previous-like-this ) )
( " C-( " . mc/unmark-previous-like-this ) )
;; https://github.com/joodland/bm
( use-package bm
:disabled
:ensure t
:demand t
:bind ( ( " C-x b b " . bm-toggle )
( " C-x b n " . bm-next )
( " C-x b p " . bm-previous ) )
:commands ( bm-repository-load
bm-repository-save
bm-buffer-save
bm-buffer-save-all
bm-buffer-restore )
:preface
( setq left-fringe-width 6 )
( setq right-fringe-width 0 )
( defface bm-face ' ( ( t nil ) ) " Specify face used to highlight the current line " :group 'bm )
( defface bm-fringe-face ' ( ( t ( :background " DarkOrange1 " :foreground " DarkOrange1 " ) ) ) " Specify face used to highlight the fringe " :group 'bm )
( defface bm-fringe-persistent-face ' ( ( t ( :background " DarkOrange1 " :foreground " DarkOrange1 " ) ) ) " Specify face used to highlight the fringe for persistant bookmarks " :group 'bm )
( defface bm-persistent-face ' ( ( t nil ) ) " Specify face used to highlight the current line for persistant bookmarks " :group 'bm )
( defface fringe ' ( ( t nil ) ) " Specify face used for the fringe " :group 'basic-faces :group 'frames )
:init
( setq bm-restore-repository-on-load t )
:config
( setq bm-cycle-all-buffers t )
( setq bm-repository-file ( concat user-emacs-directory " bookmark-repo " ) )
( setq-default bm-buffer-persistence t )
( setq bm-highlight-style 'bm-highlight-only-fringe )
( add-hook 'after-init-hook 'bm-repository-load )
( add-hook 'find-file-hooks 'bm-buffer-restore )
( add-hook 'after-revert-hook #' bm-buffer-restore )
( add-hook 'kill-buffer-hook #' bm-buffer-save )
( add-hook 'after-save-hook #' bm-buffer-save )
( add-hook 'vc-before-checkin-hook #' bm-buffer-save )
( add-hook 'kill-emacs-hook #' ( lambda nil
( bm-buffer-save-all )
( bm-repository-save ) ) ) )
;; link
;; https://github.com/skeeto/elfeed
( use-package elfeed
( use-package elfeed
:ensure t
:ensure t
:commands ( elfeed elfeed-search-set-filter )
:commands ( elfeed elfeed-search-set-filter )
@ -300,8 +216,9 @@
( " http://timharford.com/feed/ " daily )
( " http://timharford.com/feed/ " daily )
( " http://understandinguncertainty.org/rss.xml " daily )
( " http://understandinguncertainty.org/rss.xml " daily )
( " http://pragmaticemacs.com/feed/ " emacs )
( " http://pragmaticemacs.com/feed/ " emacs )
( " http://www.reddit.com/r/emacs/.rss " emacs )
( " http://planet.emacsen.org/atom.xml " emacs )
( " http://endlessparentheses.com/atom.xml " emacs )
;; ("http://www.reddit.com/r/emacs/.rss" emacs)
;; ("http://planet.emacsen.org/atom.xml" emacs)
( " http://feeds.feedburner.com/XahsEmacsBlog " emacs )
( " http://feeds.feedburner.com/XahsEmacsBlog " emacs )
( " http://emacs.stackexchange.com/feeds " emacs )
( " http://emacs.stackexchange.com/feeds " emacs )
( " https://www.google.com/alerts/feeds/13353713273807811484/2710948715805064535 " tesla )
( " https://www.google.com/alerts/feeds/13353713273807811484/2710948715805064535 " tesla )
@ -324,7 +241,7 @@
( which-key-setup-minibuffer )
( which-key-setup-minibuffer )
( which-key-mode ) )
( which-key-mode ) )
;; TODO https://github.com/lewang/fic-mode
;; https://github.com/lewang/fic-mode
( use-package fic-mode
( use-package fic-mode
:ensure t
:ensure t
:hook ( prog-mode js-mode javascript-mode )
:hook ( prog-mode js-mode javascript-mode )
@ -343,8 +260,6 @@
:config
:config
( yas-reload-all ) )
( yas-reload-all ) )
;; https://company-mode.github.io/
;; https://company-mode.github.io/
( use-package company
( use-package company
:ensure t
:ensure t
@ -390,13 +305,7 @@
;; (setq projectile-mode-line-prefix " P")
;; (setq projectile-mode-line-prefix " P")
( setq projectile-completion-system 'ivy )
( setq projectile-completion-system 'ivy )
:config
:config
( projectile-mode 1 )
;; (projectile-register-project-type 'npm '("package.json")
;; :compile "npm install"
;; :test "npm test"
;; :run "npm start"
;; :test-suffix ".test")
)
( projectile-mode 1 ) )
;; https://github.com/rudolfolah/angularjs-mode
;; https://github.com/rudolfolah/angularjs-mode
( use-package angular-mode
( use-package angular-mode
@ -433,22 +342,15 @@
:ensure t
:ensure t
:mode ( " \\ .s?css \\ ' " . scss-mode ) )
:mode ( " \\ .s?css \\ ' " . scss-mode ) )
;; https://elpa.gnu.org/packages/csv-mode.html
( use-package csv-mode
:disabled
;; https://github.com/yoshiki/yaml-mode
( use-package yaml-mode
:ensure t
:ensure t
:mode ( " \\ .csv \\ ' " . csv -mode) )
:mode ( " \\ .yml \\ ' " . yaml -mode) )
;; https://github.com/kwrooijen/cargo.el
;; https://github.com/kwrooijen/cargo.el
( use-package cargo
( use-package cargo
:hook ( rust-mode . cargo-minor-mode ) )
:hook ( rust-mode . cargo-minor-mode ) )
;; https://github.com/andre-r/centered-cursor-mode.el
( use-package centered-cursor-mode
:disabled
:commands centered-cursor-mode
:hook prog-mode )
;; https://github.com/flycheck/flycheck
;; https://github.com/flycheck/flycheck
( use-package flycheck
( use-package flycheck
:diminish
:diminish
@ -467,6 +369,7 @@
:bind (
:bind (
( " C-, " . org-cycle-agenda-files )
( " C-, " . org-cycle-agenda-files )
( " C-c C-d " . org-capture )
( " C-c C-d " . org-capture )
( " C-x C-l a " . org-agenda )
:map org-mode-map
:map org-mode-map
( " M-RET " . org-insert-todo-heading )
( " M-RET " . org-insert-todo-heading )
)
)
@ -475,6 +378,7 @@
( defvar org-html-text-markup-alist )
( defvar org-html-text-markup-alist )
:init
:init
( setq org-agenda-files ' ( " ~/Dropbox/Org/todo.org "
( setq org-agenda-files ' ( " ~/Dropbox/Org/todo.org "
" ~/Dropbox/Org/projects.org "
" ~/Dropbox/Org/archive.org "
" ~/Dropbox/Org/archive.org "
" ~/Dropbox/Org/diary/eaglecrk.org " ) )
" ~/Dropbox/Org/diary/eaglecrk.org " ) )
( setq org-todo-keywords ' ( ( sequence " TODO(t) " " | " " DONE(d) " )
( setq org-todo-keywords ' ( ( sequence " TODO(t) " " | " " DONE(d) " )
@ -520,6 +424,7 @@
( require 'org-tempo ) )
( require 'org-tempo ) )
( org-babel-do-load-languages 'org-babel-load-languages ' ( ( js . t )
( org-babel-do-load-languages 'org-babel-load-languages ' ( ( js . t )
( shell . t )
( shell . t )
( restclient . t )
( emacs-lisp . t ) ) )
( emacs-lisp . t ) ) )
( setq org-structure-template-alist
( setq org-structure-template-alist
' ( ( " r " . " src restclient :results raw " )
' ( ( " r " . " src restclient :results raw " )
@ -554,6 +459,17 @@
( add-hook 'org-mode-hook 'add-checkbox-symbol-keywords )
( add-hook 'org-mode-hook 'add-checkbox-symbol-keywords )
)
)
( use-package ob-restclient
:ensure t
:config
( setq org-babel-default-header-args:restclient
` ( ( :results . " output " ) ) ) )
;; https://github.com/astahlman/ob-async
( use-package ob-async
:ensure t
:after ( org ) )
;; https://github.com/sabof/org-bullets
;; https://github.com/sabof/org-bullets
( use-package org-bullets
( use-package org-bullets
:ensure t
:ensure t
@ -561,9 +477,10 @@
:hook ( org-mode . org-bullets-mode )
:hook ( org-mode . org-bullets-mode )
:config
:config
( set-face-attribute 'org-level-1 nil :height 1.3 )
( set-face-attribute 'org-level-1 nil :height 1.3 )
( set-face-attribute 'org-level-2 nil :height 1.1 )
( set-face-attribute 'org-level-3 nil :height 1.05 )
( set-face-attribute 'org-level-4 nil :height 1.05 )
( set-face-attribute 'org-level-2 nil :height 1.15 )
( set-face-attribute 'org-level-3 nil :height 1.1 )
( set-face-attribute 'org-level-4 nil :height 1.08 )
( set-face-attribute 'org-level-5 nil :height 1.05 )
( set-face-attribute 'org-scheduled-today nil :height 1.0 )
( set-face-attribute 'org-scheduled-today nil :height 1.0 )
( set-face-attribute 'org-agenda-date-today nil :height 1.1 ) )
( set-face-attribute 'org-agenda-date-today nil :height 1.1 ) )
@ -586,12 +503,6 @@
) )
) )
)
)
;; https://github.com/seanohalpin/org-link-minor-mode
( use-package org-link-minor-mode
:ensure t
:defer t
:commands ( org-link-minor-mode ) )
;; https://github.com/marsmining/ox-twbs
;; https://github.com/marsmining/ox-twbs
( use-package ox-twbs
( use-package ox-twbs
:ensure t
:ensure t
@ -617,6 +528,10 @@
( " M-u " . upcase-dwim )
( " M-u " . upcase-dwim )
( " M-c " . capitalize-dwim )
( " M-c " . capitalize-dwim )
( " M-l " . downcase-dwim )
( " M-l " . downcase-dwim )
( " M-<tab> " . sfdx/next-component-file )
( " C-x C-l s p " . sfdx/create-project )
( " C-x C-l s c " . sfdx/create-component )
( " C-x C-l s d " . sfdx/deploy-component-or-project )
)
)
;; https://github.com/nflath/sudo-edit
;; https://github.com/nflath/sudo-edit
@ -625,16 +540,6 @@
:defer t
:defer t
:commands ( sudo-edit ) )
: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 ) )
( provide '08-custom-packages )
( provide '08-custom-packages )
;;; 08-custom-packages.el ends here
;;; 08-custom-packages.el ends here