Doom updates
This commit is contained in:
parent
1716fed60b
commit
4843aa161c
4 changed files with 63 additions and 12 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
;(setq doom-theme 'doom-one)
|
;(setq doom-theme 'doom-one)
|
||||||
(setq doom-theme 'doom-nord)
|
(setq doom-theme 'doom-nord)
|
||||||
|
(setq doom-font (font-spec :family "Liberation Mono" :size 14))
|
||||||
|
|
||||||
;; If you use `org' and don't want your org files in the default location below,
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
|
|
@ -87,3 +88,43 @@
|
||||||
'(defun flymake-json-command (filename)
|
'(defun flymake-json-command (filename)
|
||||||
"Construct a command that flymake can use to check json source in FILENAME."
|
"Construct a command that flymake can use to check json source in FILENAME."
|
||||||
(list "jsonlint" "-V" "/Users/hunner/.doom.d/draft-07.json" "-c" "-q" filename)))
|
(list "jsonlint" "-V" "/Users/hunner/.doom.d/draft-07.json" "-c" "-q" filename)))
|
||||||
|
|
||||||
|
(after! org
|
||||||
|
(add-to-list 'org-export-backends 'confluence))
|
||||||
|
|
||||||
|
;; for https://github.com/zerolfx/copilot.el
|
||||||
|
;; accept completion from copilot and fallback to company
|
||||||
|
(defun my-tab ()
|
||||||
|
(interactive)
|
||||||
|
(or (copilot-accept-completion)
|
||||||
|
(company-indent-or-complete-common nil)))
|
||||||
|
(use-package! copilot
|
||||||
|
:hook (prog-mode . copilot-mode)
|
||||||
|
:bind (("C-TAB" . 'copilot-accept-completion-by-word)
|
||||||
|
("C-<tab>" . 'copilot-accept-completion-by-word)
|
||||||
|
:map company-active-map
|
||||||
|
("<tab>" . 'my-tab)
|
||||||
|
("TAB" . 'my-tab)
|
||||||
|
:map company-mode-map
|
||||||
|
("<tab>" . 'my-tab)
|
||||||
|
("TAB" . 'my-tab)))
|
||||||
|
|
||||||
|
;; From https://github.com/hlissner/doom-emacs/issues/581
|
||||||
|
(defun dlukes/ediff-doom-config (file)
|
||||||
|
"ediff the current config with the examples in doom-emacs-dir
|
||||||
|
|
||||||
|
There are multiple config files, so FILE specifies which one to
|
||||||
|
diff.
|
||||||
|
"
|
||||||
|
(interactive
|
||||||
|
(list (read-file-name "Config file to diff: " doom-private-dir)))
|
||||||
|
(let* ((stem (file-name-base file))
|
||||||
|
(customized-file (format "%s.el" stem))
|
||||||
|
(template-file-regex (format "^%s.example.el$" stem)))
|
||||||
|
(ediff-files
|
||||||
|
(concat doom-private-dir customized-file)
|
||||||
|
(car (directory-files-recursively
|
||||||
|
doom-emacs-dir
|
||||||
|
template-file-regex
|
||||||
|
nil
|
||||||
|
(lambda (d) (not (string-prefix-p "." (file-name-nondirectory d)))))))))
|
||||||
|
|
|
||||||
|
|
@ -14,33 +14,34 @@
|
||||||
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
||||||
;; directory (for easy access to its source code).
|
;; directory (for easy access to its source code).
|
||||||
|
|
||||||
|
|
||||||
(doom! :input
|
(doom! :input
|
||||||
;;chinese
|
;;chinese
|
||||||
;;japanese
|
;;japanese
|
||||||
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
:completion
|
:completion
|
||||||
company ; the ultimate code completion backend
|
(company +childframe) ; the ultimate code completion backend ; XXX changed
|
||||||
;;helm ; the *other* search engine for love and life
|
;;helm ; the *other* search engine for love and life
|
||||||
;;ido ; the other *other* search engine...
|
;;ido ; the other *other* search engine...
|
||||||
ivy ; a search engine for love and life
|
ivy ; a search engine for love and life
|
||||||
|
;;vertico ; the search engine of the future
|
||||||
|
|
||||||
:ui
|
:ui
|
||||||
;;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
|
||||||
;;fill-column ; a `fill-column' indicator
|
;;(emoji +unicode) ; 🙂
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
;;hydra
|
||||||
;;indent-guides ; highlighted indent columns
|
;;indent-guides ; highlighted indent columns
|
||||||
|
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||||
;;minimap ; show a map of the code on the side
|
;;minimap ; show a map of the code on the side
|
||||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
nav-flash ; blink cursor line after big motions
|
nav-flash ; blink cursor line after big motions
|
||||||
;;neotree ; a project drawer, like NERDTree for vim
|
;;neotree ; a project drawer, like NERDTree for vim
|
||||||
ophints ; highlight the region an operation acts on
|
ophints ; highlight the region an operation acts on
|
||||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||||
;;pretty-code ; ligatures or substitute text with pretty symbols
|
|
||||||
;;tabs ; a tab bar for Emacs
|
;;tabs ; a tab bar for Emacs
|
||||||
treemacs ; a project drawer, like neotree but cooler ; XXX Changed
|
treemacs ; a project drawer, like neotree but cooler ; XXX Changed
|
||||||
;;unicode ; extended unicode support for various languages
|
;;unicode ; extended unicode support for various languages
|
||||||
|
|
@ -79,7 +80,7 @@
|
||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
syntax ; tasing you for every semicolon you forget
|
syntax ; tasing you for every semicolon you forget
|
||||||
;;spell ; tasing you for misspelling mispelling
|
;;(spell +flyspell) ; tasing you for misspelling mispelling
|
||||||
;;grammar ; tasing grammar mistake every you make
|
;;grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
|
|
@ -93,7 +94,6 @@
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
lsp ; XXX Changed
|
lsp ; XXX Changed
|
||||||
macos ; MacOS-specific commands XXX Changed
|
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs ; XXX Changed
|
make ; run make tasks from Emacs ; XXX Changed
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
|
|
@ -105,9 +105,14 @@
|
||||||
tmux ; an API for interacting with tmux ; XXX Changed
|
tmux ; an API for interacting with tmux ; XXX Changed
|
||||||
;;upload ; map local to remote projects via ssh/ftp
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
|
:os
|
||||||
|
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||||
|
tty ; improve the terminal Emacs experience ; XXX Changed
|
||||||
|
|
||||||
:lang
|
:lang
|
||||||
;;agda ; types of types of types of types...
|
;;agda ; types of types of types of types...
|
||||||
;;cc ; C/C++/Obj-C madness
|
;;beancount ; mind the GAAP
|
||||||
|
;;cc ; C > C++ == 1
|
||||||
;;clojure ; java with a lisp
|
;;clojure ; java with a lisp
|
||||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;;coq ; proofs-as-programs
|
;;coq ; proofs-as-programs
|
||||||
|
|
@ -120,6 +125,7 @@
|
||||||
emacs-lisp ; drown in parentheses
|
emacs-lisp ; drown in parentheses
|
||||||
;;erlang ; an elegant language for a more civilized age
|
;;erlang ; an elegant language for a more civilized age
|
||||||
;;ess ; emacs speaks statistics
|
;;ess ; emacs speaks statistics
|
||||||
|
;;factor
|
||||||
;;faust ; dsp, but you get to keep your soul
|
;;faust ; dsp, but you get to keep your soul
|
||||||
;;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
|
||||||
|
|
@ -127,16 +133,15 @@
|
||||||
(go +lsp) ; the hipster dialect ; XXX Changed
|
(go +lsp) ; the hipster dialect ; XXX Changed
|
||||||
;;(haskell +dante) ; a language that's lazier than I am
|
;;(haskell +dante) ; 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 ;
|
;;idris ; a language you can depend on
|
||||||
;;json ; At least it ain't XML
|
;;json ; At least it ain't XML
|
||||||
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||||
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) ; XXX Changed
|
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) ; XXX Changed
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
;;latex ; writing papers in Emacs has never been so fun
|
;;latex ; writing papers in Emacs has never been so fun
|
||||||
;;lean
|
;;lean ; for folks with too much to prove
|
||||||
;;factor
|
;;ledger ; be audit you can be
|
||||||
;;ledger ; an accounting system in Emacs
|
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
markdown ; writing docs for people to ignore
|
markdown ; writing docs for people to ignore
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
|
|
@ -155,7 +160,7 @@
|
||||||
;;(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 ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
;;scala ; java, but good
|
;;scala ; java, but good
|
||||||
;;scheme ; a fully conniving family of lisps
|
;;(scheme +guile) ; a fully conniving family of lisps
|
||||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
sh ; 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.
|
||||||
|
|
@ -171,6 +176,8 @@
|
||||||
|
|
||||||
:app
|
:app
|
||||||
;;calendar
|
;;calendar
|
||||||
|
;;emms
|
||||||
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
;;(rss +org) ; emacs as an RSS reader
|
;;(rss +org) ; emacs as an RSS reader
|
||||||
;;twitter ; twitter client https://twitter.com/vnought
|
;;twitter ; twitter client https://twitter.com/vnought
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,6 @@
|
||||||
;(unpin! t)
|
;(unpin! t)
|
||||||
|
|
||||||
(package! puppet-mode)
|
(package! puppet-mode)
|
||||||
|
|
||||||
|
(package! copilot
|
||||||
|
:recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist")))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue