Update Available / Enabled Modules & Rainbow Mode

- Add rainbow mode
- Update `init.el` with latest version from upstream
- Disable `doom-quit`
- Enable `ibuffer`
- Add `hunspell` and `everywhere` flags to `spell`
- Enable `debugger` with `lsp` flag
- Enable `docker`
- Disable `rgb` as it is deprecated
- Enable `java`
- Enable `rust`
- Add `lsp` flag for `haskell`
- Add `lsp` flag for `json`
- Add `dragndrop` and `jupyter` flags to `org`
- Replace `fish-mode` package with `fish` flag for `sh`
- Add `lsp` flag for `yaml`
- Fix projectile project search paths
- Add and configure global Rainbow Mode
This commit is contained in:
Sravan Balaji
2022-07-02 07:51:35 -04:00
parent c8012f6106
commit 5fda254ac2
4 changed files with 275 additions and 254 deletions

View File

@@ -28,7 +28,8 @@
- [[#prettier-formatter][Prettier Formatter]] - [[#prettier-formatter][Prettier Formatter]]
- [[#cdlatex][CDLaTeX]] - [[#cdlatex][CDLaTeX]]
- [[#file-extension-mode-association][File Extension Mode Association]] - [[#file-extension-mode-association][File Extension Mode Association]]
- [[#automatically-revert-buffers-for-changed-files][Automatically revert buffers for changed files]] - [[#automatically-revert-buffers-for-changed-files][Automatically Revert Buffers For Changed Files]]
- [[#rainbow-mode][Rainbow Mode]]
- [[#packagesel][packages.el]] - [[#packagesel][packages.el]]
- [[#packages][Packages]] - [[#packages][Packages]]
@@ -56,6 +57,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
#+BEGIN_SRC emacs-lisp :tangle init.el #+BEGIN_SRC emacs-lisp :tangle init.el
(doom! :input (doom! :input
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
;;chinese ;;chinese
;;japanese ;;japanese
;;layout ; auie,ctsrnm is the superior home row ;;layout ; auie,ctsrnm is the superior home row
@@ -79,7 +81,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;deft ; notational velocity for Emacs ;;deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂 ;;(emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra
@@ -125,7 +127,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
:emacs :emacs
dired ; making dired pretty [functional] dired ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent electric ; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree vc ; version-control and Emacs, sitting in a tree
#+END_SRC #+END_SRC
@@ -145,7 +147,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
#+BEGIN_SRC emacs-lisp :tangle init.el #+BEGIN_SRC emacs-lisp :tangle init.el
:checkers :checkers
syntax ; tasing you for every semicolon you forget syntax ; tasing you for every semicolon you forget
(spell +flyspell) ; tasing you for misspelling mispelling (spell +flyspell +hunspell +everywhere) ; tasing you for misspelling mispelling
grammar ; tasing grammar mistake every you make grammar ; tasing grammar mistake every you make
#+END_SRC #+END_SRC
@@ -154,9 +156,10 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
#+BEGIN_SRC emacs-lisp :tangle init.el #+BEGIN_SRC emacs-lisp :tangle init.el
:tools :tools
;;ansible ;;ansible
;;debugger ; FIXME stepping through code, to help you add bugs ;;biblio ; Writes a PhD for you (citation needed)
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
;;direnv ;;direnv
;;docker (docker +lsp)
;;editorconfig ; let someone else argue about tabs vs spaces ;;editorconfig ; let someone else argue about tabs vs spaces
ein ; tame Jupyter notebooks with emacs ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls) (eval +overlay) ; run code, run (also, repls)
@@ -168,10 +171,11 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;pass ; password manager for nerds ;;pass ; password manager for nerds
pdf ; pdf enhancements pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
rgb ; creating color strings ;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects ;;taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code ;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux ;;tmux ; an API for interacting with tmux
;;tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp ;;upload ; map local to remote projects via ssh/ftp
#+END_SRC #+END_SRC
@@ -205,27 +209,29 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;ess ; emacs speaks statistics ;;ess ; emacs speaks statistics
;;factor ;;factor
;;faust ; dsp, but you get to keep your soul ;;faust ; dsp, but you get to keep your soul
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
;;fsharp ; ML stands for Microsoft's Language ;;fsharp ; ML stands for Microsoft's Language
;;fstar ; (dependent) types and (monadic) effects and Z3 ;;fstar ; (dependent) types and (monadic) effects and Z3
;;gdscript ; the language you waited for ;;gdscript ; the language you waited for
;;(go +lsp) ; the hipster dialect ;;(go +lsp) ; the hipster dialect
(haskell +dante) ; a language that's lazier than I am ;;(graphql +lsp) ; Give queries a REST
(haskell +lsp) ; a language that's lazier than I am
;;hy ; readability of scheme w/ speed of python ;;hy ; readability of scheme w/ speed of python
;;idris ; a language you can depend on ;;idris ; a language you can depend on
json ; At least it ain't XML (json +lsp) ; At least it ain't XML
;;(java +meghanada) ; the poster child for carpal tunnel syndrome (java +lsp) ; the poster child for carpal tunnel syndrome
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) (javascript +lsp) ; all(hope(abandon(ye(who(enter(here))))))
(julia +lsp) ; a better, faster MATLAB (julia +lsp) ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script) ;;kotlin ; a better, slicker Java(Script)
(latex +cdlatex) ; writing papers in Emacs has never been so fun (latex +cdlatex +lsp ) ; writing papers in Emacs has never been so fun
;;lean ; for folks with too much to prove ;;lean ; for folks with too much to prove
;;ledger ; be audit you can be ;;ledger ; be audit you can be
;;lua ; one-based indices? one-based indices ;;lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore (markdown +grip) ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c ;;nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!" ;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel ;;ocaml ; an objective camel
(org +pretty) ; organize your plain life in plain text (org +dragndrop +jupyter +pretty) ; organize your plain life in plain text
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional
@@ -236,16 +242,16 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;rest ; Emacs as a REST client ;;rest ; Emacs as a REST client
;;rst ; ReST in peace ;;rst ; ReST in peace
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good ;;scala ; java, but good
;;(scheme +guile) ; a fully conniving family of lisps ;;(scheme +guile) ; a fully conniving family of lisps
(sh +lsp) ; she sells {ba,z,fi}sh shells on the C xor (sh +fish +lsp) ; she sells {ba,z,fi}sh shells on the C xor
;;sml ;;sml
;;solidity ; do you need a blockchain? No. ;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables? ;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance. ;;terra ; Earth and Moon in alignment for performance.
(web +lsp) ; the tubes web ; the tubes
yaml ; JSON, but readable (yaml +lsp) ; JSON, but readable
;;zig ; C, but simpler ;;zig ; C, but simpler
#+END_SRC #+END_SRC
@@ -460,14 +466,13 @@ If you use =org= and don't want your org files in the default location below, ch
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" "")) (setq org-superstar-headline-bullets-list '("" "" "" "" "" "" ""))
(setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists (setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists
(add-hook! org-mode (org-superstar-mode)) (add-hook! org-mode (org-superstar-mode))
#+END_SRC #+END_SRC
*** Projectile *** Projectile
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq projectile-project-search-path '("~/Projects/" "~/.config/")) (setq projectile-project-search-path '("~/Projects/Personal/" "~/Projects/System/" "~/.config/"))
#+END_SRC #+END_SRC
*** Prettier Formatter *** Prettier Formatter
@@ -491,7 +496,7 @@ If you use =org= and don't want your org files in the default location below, ch
(add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode)) (add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode))
#+END_SRC #+END_SRC
*** Automatically revert buffers for changed files *** Automatically Revert Buffers For Changed Files
Revert buffers when the underlying file has changed Revert buffers when the underlying file has changed
@@ -500,6 +505,14 @@ Revert buffers when the underlying file has changed
(setq global-auto-revert-non-file-buffers t) (setq global-auto-revert-non-file-buffers t)
#+END_SRC #+END_SRC
*** Rainbow Mode
#+BEGIN_SRC emacs-lisp :tangle config.el
(define-globalized-minor-mode global-rainbow-mode rainbow-mode
(lambda () (rainbow-mode 1)))
(global-rainbow-mode 1)
#+END_SRC
** packages.el ** packages.el
To install a package with Doom you must declare them here and run =doom sync= on the command line, then restart Emacs for the changes to take effect -- or use =M-x doom/reload=. To install a package with Doom you must declare them here and run =doom sync= on the command line, then restart Emacs for the changes to take effect -- or use =M-x doom/reload=.
@@ -577,8 +590,8 @@ Doom's packages are pinned to a specific commit and updated from release to rele
#+BEGIN_SRC emacs-lisp :tangle packages.el #+BEGIN_SRC emacs-lisp :tangle packages.el
(package! org-auto-tangle) (package! org-auto-tangle)
(package! fish-mode)
(package! git-modes) (package! git-modes)
(package! vimrc-mode) (package! vimrc-mode)
(package! prettier-js) (package! prettier-js)
(package! rainbow-mode)
#+END_SRC #+END_SRC

View File

@@ -67,10 +67,9 @@
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" "")) (setq org-superstar-headline-bullets-list '("" "" "" "" "" "" ""))
(setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists (setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists
(add-hook! org-mode (org-superstar-mode)) (add-hook! org-mode (org-superstar-mode))
(setq projectile-project-search-path '("~/Projects/" "~/.config/")) (setq projectile-project-search-path '("~/Projects/Personal/" "~/Projects/System/" "~/.config/"))
(add-hook! 'web-mode-hook 'prettier-js-mode) (add-hook! 'web-mode-hook 'prettier-js-mode)
@@ -81,3 +80,7 @@
(global-auto-revert-mode 1) (global-auto-revert-mode 1)
(setq global-auto-revert-non-file-buffers t) (setq global-auto-revert-non-file-buffers t)
(define-globalized-minor-mode global-rainbow-mode rainbow-mode
(lambda () (rainbow-mode 1)))
(global-rainbow-mode 1)

37
init.el
View File

@@ -1,6 +1,7 @@
;;; init.el -*- lexical-binding: t; -*- ;;; init.el -*- lexical-binding: t; -*-
(doom! :input (doom! :input
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
;;chinese ;;chinese
;;japanese ;;japanese
;;layout ; auie,ctsrnm is the superior home row ;;layout ; auie,ctsrnm is the superior home row
@@ -16,7 +17,7 @@
;;deft ; notational velocity for Emacs ;;deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂 ;;(emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra
@@ -54,7 +55,7 @@
:emacs :emacs
dired ; making dired pretty [functional] dired ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent electric ; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree vc ; version-control and Emacs, sitting in a tree
@@ -66,14 +67,15 @@
:checkers :checkers
syntax ; tasing you for every semicolon you forget syntax ; tasing you for every semicolon you forget
(spell +flyspell) ; tasing you for misspelling mispelling (spell +flyspell +hunspell +everywhere) ; tasing you for misspelling mispelling
grammar ; tasing grammar mistake every you make grammar ; tasing grammar mistake every you make
:tools :tools
;;ansible ;;ansible
;;debugger ; FIXME stepping through code, to help you add bugs ;;biblio ; Writes a PhD for you (citation needed)
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
;;direnv ;;direnv
;;docker (docker +lsp)
;;editorconfig ; let someone else argue about tabs vs spaces ;;editorconfig ; let someone else argue about tabs vs spaces
ein ; tame Jupyter notebooks with emacs ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls) (eval +overlay) ; run code, run (also, repls)
@@ -85,10 +87,11 @@
;;pass ; password manager for nerds ;;pass ; password manager for nerds
pdf ; pdf enhancements pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
rgb ; creating color strings ;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects ;;taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code ;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux ;;tmux ; an API for interacting with tmux
;;tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp ;;upload ; map local to remote projects via ssh/ftp
:os :os
@@ -114,27 +117,29 @@
;;ess ; emacs speaks statistics ;;ess ; emacs speaks statistics
;;factor ;;factor
;;faust ; dsp, but you get to keep your soul ;;faust ; dsp, but you get to keep your soul
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
;;fsharp ; ML stands for Microsoft's Language ;;fsharp ; ML stands for Microsoft's Language
;;fstar ; (dependent) types and (monadic) effects and Z3 ;;fstar ; (dependent) types and (monadic) effects and Z3
;;gdscript ; the language you waited for ;;gdscript ; the language you waited for
;;(go +lsp) ; the hipster dialect ;;(go +lsp) ; the hipster dialect
(haskell +dante) ; a language that's lazier than I am ;;(graphql +lsp) ; Give queries a REST
(haskell +lsp) ; a language that's lazier than I am
;;hy ; readability of scheme w/ speed of python ;;hy ; readability of scheme w/ speed of python
;;idris ; a language you can depend on ;;idris ; a language you can depend on
json ; At least it ain't XML (json +lsp) ; At least it ain't XML
;;(java +meghanada) ; the poster child for carpal tunnel syndrome (java +lsp) ; the poster child for carpal tunnel syndrome
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) (javascript +lsp) ; all(hope(abandon(ye(who(enter(here))))))
(julia +lsp) ; a better, faster MATLAB (julia +lsp) ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script) ;;kotlin ; a better, slicker Java(Script)
(latex +cdlatex) ; writing papers in Emacs has never been so fun (latex +cdlatex +lsp ) ; writing papers in Emacs has never been so fun
;;lean ; for folks with too much to prove ;;lean ; for folks with too much to prove
;;ledger ; be audit you can be ;;ledger ; be audit you can be
;;lua ; one-based indices? one-based indices ;;lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore (markdown +grip) ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c ;;nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!" ;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel ;;ocaml ; an objective camel
(org +pretty) ; organize your plain life in plain text (org +dragndrop +jupyter +pretty) ; organize your plain life in plain text
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional
@@ -145,16 +150,16 @@
;;rest ; Emacs as a REST client ;;rest ; Emacs as a REST client
;;rst ; ReST in peace ;;rst ; ReST in peace
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good ;;scala ; java, but good
;;(scheme +guile) ; a fully conniving family of lisps ;;(scheme +guile) ; a fully conniving family of lisps
(sh +lsp) ; she sells {ba,z,fi}sh shells on the C xor (sh +fish +lsp) ; she sells {ba,z,fi}sh shells on the C xor
;;sml ;;sml
;;solidity ; do you need a blockchain? No. ;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables? ;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance. ;;terra ; Earth and Moon in alignment for performance.
(web +lsp) ; the tubes web ; the tubes
yaml ; JSON, but readable (yaml +lsp) ; JSON, but readable
;;zig ; C, but simpler ;;zig ; C, but simpler
:email :email

View File

@@ -2,7 +2,7 @@
;;; $DOOMDIR/packages.el ;;; $DOOMDIR/packages.el
(package! org-auto-tangle) (package! org-auto-tangle)
(package! fish-mode)
(package! git-modes) (package! git-modes)
(package! vimrc-mode) (package! vimrc-mode)
(package! prettier-js) (package! prettier-js)
(package! rainbow-mode)