aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-07-25 23:00:30 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-07-25 23:01:42 +0300
commit48e0f10b9859d3510e6b458f4c6db7b401fd1b74 (patch)
tree6fea4b79a000ef67a4390f79a23c7ccff3ad9252
parent349625340559e5c53b3c0664fa026a79113d3fc7 (diff)
downloaddotfiles-48e0f10b9859d3510e6b458f4c6db7b401fd1b74.tar.gz
dotfiles-48e0f10b9859d3510e6b458f4c6db7b401fd1b74.zip
add doom-emacs configs
just trying. probably my configs now are messy, but eventually they'll improve.
-rw-r--r--doom-emacs/.config/doom/config.el191
-rw-r--r--doom-emacs/.config/doom/init.el195
-rw-r--r--doom-emacs/.config/doom/packages.el52
-rw-r--r--doom-emacs/.config/doom/themes/la-ninpre-theme.el118
-rw-r--r--doom-emacs/.config/mbsyncrc-example72
-rwxr-xr-xinstall2
6 files changed, 629 insertions, 1 deletions
diff --git a/doom-emacs/.config/doom/config.el b/doom-emacs/.config/doom/config.el
new file mode 100644
index 0000000..34c2cf2
--- /dev/null
+++ b/doom-emacs/.config/doom/config.el
@@ -0,0 +1,191 @@
+;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
+
+;; Place your private configuration here! Remember, you do not need to run 'doom
+;; sync' after modifying this file!
+
+
+;; Some functionality uses this to identify you, e.g. GPG configuration, email
+;; clients, file templates and snippets.
+;;
+(setq user-full-name "la-ninpre")
+(setq user-mail-address "leobrekalini@gmail.com")
+
+;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
+;; are the three important ones:
+;;
+;; + `doom-font'
+;; + `doom-variable-pitch-font'
+;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
+;; presentations or streaming.
+;;
+;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
+;; font string. You generally only need these two:
+;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
+;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
+
+;; There are two ways to load a theme. Both assume the theme is installed and
+;; available. You can either set `doom-theme' or manually load a theme with the
+;; `load-theme' function. This is the default:
+
+(setq doom-theme 'la-ninpre)
+
+(setq doom-font (font-spec :family "JetBrains Mono" :size 14 :weight 'medium)
+ doom-big-font (font-spec :family "JetBrains Mono" :size 36)
+ doom-unicode-font (font-spec :family "Noto")
+ doom-serif-font (font-spec :family "Noto Serif")
+ doom-variable-pitch-font (font-spec :family "Lato" :size 14))
+
+;; 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!
+(setq org-directory "~/Documents/org/")
+
+;; This determines the style of line numbers in effect. If set to `nil', line
+;; numbers are disabled. For relative line numbers, set this to `relative'.
+(setq display-line-numbers-type 'relative)
+
+;; disable exit prompt
+(setq confirm-kill-emacs nil)
+
+;; fix path for pandoc
+(add-to-list 'exec-path "~/.local/bin")
+
+;; mu4e
+(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
+(require 'mu4e)
+
+(setq mu4e-change-filenames-when-moving t)
+(setq message-send-mail-function 'smtpmail-send-it)
+(setq mu4e-get-mail-command "mbsync -c ~/.config/mbsyncrc -a"
+ mu4e-update-interval 300
+ mu4e-sent-messages-behavior 'delete
+ mu4e-attachment-dir "~/Downloads"
+ message-send-mail-function 'smtpmail-send-it
+ starttls-use-gnutls t
+ mu4e-compose-format-flowed t)
+
+(setq mu4e-context-policy 'pick-first)
+(setq mu4e-compose-context-policy 'ask-if-none)
+
+(add-to-list 'load-path "~/.config/doom")
+(require 'la-ninpre-email)
+;; actual `mu4e-contexts' is in =~/.config/doom/la-ninpre-email.el=.
+;; i don't want to include it, but it looks very similar to this below.
+;; also there's an example `mbsyncrc' in =~/.config/mbsyncrc-example=
+
+;; (setq mu4e-contexts
+;; (list
+;; (make-mu4e-context
+;; :name "acct-1"
+;; :enter-func (lambda () (mu4e-message "Entering context acct-1"))
+;; :leave-func (lambda () (mu4e-message "Leaving context acct-1"))
+;; :match-func (lambda (msg)
+;; (when msg
+;; (mu4e-message-contact-field-matches
+;; msg '(:from :to :cc :bcc) "acct-1@example.com")))
+;; :vars '((user-mail-address . "acct-1@example.com")
+;; (user-full-name . "acct-1")
+;; (mu4e-sent-folder . "/acct-1/Sent")
+;; (mu4e-drafts-folder . "/acct-1/Drafts")
+;; (mu4e-trash-folder . "/acct-1/Trash")
+;; (smtpmail-smtp-user . "acct-1@example.com")
+;; (smtpmail-starttls-credentials . (("smtp.example.com" 587 nil nil)))
+;; (smtpmail-auth-credentials
+;; . (expand-file-name "~/.password-store/acct-1.gpg"))
+;; (smtpmail-default-smtp-server . "smtp.example.com")
+;; (smtpmail-smtp-server . "smtp.example.com")
+;; (smtpmail-smtp-service . 587)
+;; (smtpmail-debug-info . t)
+;; (smtpmail-debug-verbose . t)
+;; (mu4e-maildir-shortcuts . (("/acct-1/INBOX" . ?i)
+;; ("/acct-1/Sent" . ?s)
+;; ("/acct-1/Trash" . ?t)
+;; ("/acct-1/All Mail" . ?a)
+;; ("/acct-1/Starred" . ?r)
+;; ("/acct-1/drafts" . ?d)
+;; ))))
+;; (make-mu4e-context
+;; :name "acct-2"
+;; :enter-func (lambda () (mu4e-message "Entering context acct-2"))
+;; :leave-func (lambda () (mu4e-message "Leaving context acct-2"))
+;; :match-func (lambda (msg)
+;; (when msg
+;; (mu4e-message-contact-field-matches
+;; msg '(:from :to :cc :bcc) "acct-2@example.com")))
+;; :vars '((user-mail-address . "acct-2@example.com")
+;; (user-full-name . "acct-2")
+;; (mu4e-sent-folder . "/acct-2/[Gmail].Sent Mail")
+;; (mu4e-drafts-folder . "/acct-2/[Gmail].Drafts")
+;; (mu4e-trash-folder . "/acct-2/[Gmail].Bin")
+;; (smtpmail-smtp-user . "acct-2@example.com")
+;; (smtpmail-starttls-credentials . (("smtp.gmail.com" 587 nil nil)))
+;; (smtpmail-auth-credentials
+;; . (expand-file-name "~/.password-store/self/acct-2.gpg"))
+;; (smtpmail-default-smtp-server . "smtp.gmail.com")
+;; (smtpmail-smtp-server . "smtp.gmail.com")
+;; (smtpmail-smtp-service . 587)
+;; (smtpmail-debug-info . t)
+;; (smtpmail-debug-verbose . t)
+;; (mu4e-maildir-shortcuts . (("/acct-2/INBOX" . ?i)
+;; ("/acct-2/[Gmail].Sent Mail" . ?s)
+;; ("/acct-2/[Gmail].Bin" . ?t)
+;; ("/acct-2/[Gmail].All Mail" . ?a)
+;; ("/acct-2/[Gmail].Starred" . ?r)
+;; ("/acct-2/[Gmail].drafts" . ?d)
+;; ))))))
+;; (provide 'la-ninpre-email)
+
+
+(setq mml-secure-openpgp-signers '("DD1F79DC24054C1F42440F2E405C2C163EF6A2C9"))
+
+(add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
+
+;; dired
+
+(setq dired-listing-switches "-la --group-directories-first")
+
+(defun xah-syntax-color-hex ()
+ "syntax color text of the form `#ff1100' and #abc in current buffer.
+url `http://ergoemacs.org/emacs/emacs_CSS_colors.html'
+version 2017-03-12"
+ (interactive)
+ (font-lock-add-keywords
+ nil
+ '(("#[[:xdigit:]]\\{3\\}"
+ (0 (put-text-property
+ (match-beginning 0)
+ (match-end 0)
+ 'face (list :background
+ (let* (
+ (ms (match-string-no-properties 0))
+ (r (substring ms 1 2))
+ (g (substring ms 2 3))
+ (b (substring ms 3 4)))
+ (concat "#" r r g g b b))))))
+ ("#[[:xdigit:]]\\{6\\}"
+ (0 (put-text-property
+ (match-beginning 0)
+ (match-end 0)
+ 'face (list :background (match-string-no-properties 0)))))))
+ (font-lock-flush))
+
+(add-hook 'emacs-lisp-mode 'xah-syntax-color-hex)
+(add-hook 'css-mode-hook 'xah-syntax-color-hex)
+(add-hook 'yaml-mode-hook 'xah-syntax-color-hex)
+(add-hook 'html-mode-hook 'xah-syntax-color-hex)
+
+;; Here are some additional functions/macros that could help you configure Doom:
+;;
+;; - `load!' for loading external *.el files relative to this one
+;; - `use-package!' for configuring packages
+;; - `after!' for running code after a package has loaded
+;; - `add-load-path!' for adding directories to the `load-path', relative to
+;; this file. Emacs searches the `load-path' when you load packages with
+;; `require' or `use-package'.
+;; - `map!' for binding new keys
+;;
+;; To get information about any of these functions/macros, move the cursor over
+;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
+;; This will open documentation for it, including demos of how they are used.
+;;
+;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
+;; they are implemented.
diff --git a/doom-emacs/.config/doom/init.el b/doom-emacs/.config/doom/init.el
new file mode 100644
index 0000000..c5e4403
--- /dev/null
+++ b/doom-emacs/.config/doom/init.el
@@ -0,0 +1,195 @@
+;;; init.el -*- lexical-binding: t; -*-
+
+;; This file controls what Doom modules are enabled and what order they load
+;; in. Remember to run 'doom sync' after modifying it!
+
+;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
+;; documentation. There you'll find a "Module Index" link where you'll find
+;; a comprehensive list of Doom's modules and what flags they support.
+
+;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
+;; 'C-c c k' for non-vim users) to view its documentation. This works on
+;; flags as well (those symbols that start with a plus).
+;;
+;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
+;; directory (for easy access to its source code).
+
+(doom! :input
+ ;;chinese
+ ;;japanese
+ ;;layout ; auie,ctsrnm is the superior home row
+
+ :completion
+ company ; the ultimate code completion backend
+ ;;helm ; the *other* search engine for love and life
+ ;;ido ; the other *other* search engine...
+ ivy ; a search engine for love and life
+
+ :ui
+ ;;deft ; notational velocity for Emacs
+ doom ; what makes DOOM look the way it does
+ doom-dashboard ; a nifty splash screen for Emacs
+ ;;doom-quit ; DOOM quit-message prompts when you quit Emacs
+ (emoji +unicode) ; 🙂
+ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
+ ;;hydra
+ ;;indent-guides ; highlighted indent columns
+ (ligatures +extra) ; ligatures and symbols to make your code pretty again
+ ;;minimap ; show a map of the code on the side
+ modeline ; snazzy, Atom-inspired modeline, plus API
+ ;;nav-flash ; blink cursor line after big motions
+ ;;neotree ; a project drawer, like NERDTree for vim
+ ophints ; highlight the region an operation acts on
+ (popup +defaults) ; tame sudden yet inevitable temporary windows
+ ;;tabs ; a tab bar for Emacs
+ treemacs ; a project drawer, like neotree but cooler
+ unicode ; extended unicode support for various languages
+ vc-gutter ; vcs diff in the fringe
+ vi-tilde-fringe ; fringe tildes to mark beyond EOB
+ window-select ; visually switch windows
+ workspaces ; tab emulation, persistence & separate workspaces
+ zen ; distraction-free coding or writing
+
+ :editor
+ (evil +everywhere); come to the dark side, we have cookies
+ file-templates ; auto-snippets for empty files
+ fold ; (nigh) universal code folding
+ ;;(format +onsave) ; automated prettiness
+ ;;god ; run Emacs commands without modifier keys
+ ;;lispy ; vim for lisp, for people who don't like vim
+ ;;multiple-cursors ; editing in many places at once
+ ;;objed ; text object editing for the innocent
+ ;;parinfer ; turn lisp into python, sort of
+ ;;rotate-text ; cycle region at point between text candidates
+ snippets ; my elves. They type so I don't have to
+ ;;word-wrap ; soft wrapping with language-aware indent
+
+ :emacs
+ dired ; making dired pretty [functional]
+ electric ; smarter, keyword-based electric-indent
+ ;;ibuffer ; interactive buffer management
+ undo ; persistent, smarter undo for your inevitable mistakes
+ vc ; version-control and Emacs, sitting in a tree
+
+ :term
+ eshell ; the elisp shell that works everywhere
+ ;;shell ; simple shell REPL for Emacs
+ ;;term ; basic terminal emulator for Emacs
+ vterm ; the best terminal emulation in Emacs
+
+ :checkers
+ syntax ; tasing you for every semicolon you forget
+ ;;(spell +flyspell) ; tasing you for misspelling mispelling
+ ;;grammar ; tasing grammar mistake every you make
+
+ :tools
+ ;;ansible
+ ;;debugger ; FIXME stepping through code, to help you add bugs
+ ;;direnv
+ ;;docker
+ ;;editorconfig ; let someone else argue about tabs vs spaces
+ ;;ein ; tame Jupyter notebooks with emacs
+ (eval +overlay) ; run code, run (also, repls)
+ ;;gist ; interacting with github gists
+ lookup ; navigate your code and its documentation
+ lsp ; M-x vscode
+ magit ; a git porcelain for Emacs
+ make ; run make tasks from Emacs
+ pass ; password manager for nerds
+ ;;pdf ; pdf enhancements
+ ;;prodigy ; FIXME managing external services & code builders
+ rgb ; creating color strings
+ ;;taskrunner ; taskrunner for all your projects
+ ;;terraform ; infrastructure as code
+ ;;tmux ; an API for interacting with tmux
+ ;;upload ; map local to remote projects via ssh/ftp
+
+ :os
+ ;;(:if IS-MAC macos) ; improve compatibility with macOS
+ ;;tty ; improve the terminal Emacs experience
+
+ :lang
+ ;;agda ; types of types of types of types...
+ ;;beancount ; mind the GAAP
+ cc ; C > C++ == 1
+ ;;clojure ; java with a lisp
+ ;;common-lisp ; if you've seen one lisp, you've seen them all
+ ;;coq ; proofs-as-programs
+ ;;crystal ; ruby at the speed of c
+ ;;csharp ; unity, .NET, and mono shenanigans
+ data ; config/data formats
+ ;;(dart +flutter) ; paint ui and not much else
+ ;;elixir ; erlang done right
+ ;;elm ; care for a cup of TEA?
+ emacs-lisp ; drown in parentheses
+ ;;erlang ; an elegant language for a more civilized age
+ ;;ess ; emacs speaks statistics
+ ;;factor
+ ;;faust ; dsp, but you get to keep your soul
+ ;;fsharp ; ML stands for Microsoft's Language
+ ;;fstar ; (dependent) types and (monadic) effects and Z3
+ ;;gdscript ; the language you waited for
+ (go +lsp) ; the hipster dialect
+ (haskell +dante) ; a language that's lazier than I am
+ ;;hy ; readability of scheme w/ speed of python
+ ;;idris ; a language you can depend on
+ json ; At least it ain't XML
+ ;;(java +meghanada) ; the poster child for carpal tunnel syndrome
+ javascript ; all(hope(abandon(ye(who(enter(here))))))
+ ;;julia ; a better, faster MATLAB
+ ;;kotlin ; a better, slicker Java(Script)
+ latex ; writing papers in Emacs has never been so fun
+ ;;lean ; for folks with too much to prove
+ ;;ledger ; be audit you can be
+ ;;lua ; one-based indices? one-based indices
+ markdown ; writing docs for people to ignore
+ ;;nim ; python + lisp at the speed of c
+ ;;nix ; I hereby declare "nix geht mehr!"
+ ;;ocaml ; an objective camel
+ (org ; organize your plain life in plain text
+ +pretty
+ +dragndrop
+ +noter
+ +jupyter
+ +pandoc
+ +gnuplot
+ +present
+ +roam)
+ ;;php ; perl's insecure younger brother
+ ;;plantuml ; diagrams for confusing people more
+ ;;purescript ; javascript, but functional
+ (python +lsp +pyright) ; beautiful is better than ugly
+ ;;qt ; the 'cutest' gui framework ever
+ ;;racket ; a DSL for DSLs
+ ;;raku ; the artist formerly known as perl6
+ ;;rest ; Emacs as a REST client
+ ;;rst ; ReST in peace
+ (ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
+ ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
+ ;;scala ; java, but good
+ ;;(scheme +guile) ; a fully conniving family of lisps
+ sh ; she sells {ba,z,fi}sh shells on the C xor
+ ;;sml
+ ;;solidity ; do you need a blockchain? No.
+ ;;swift ; who asked for emoji variables?
+ ;;terra ; Earth and Moon in alignment for performance.
+ web ; the tubes
+ yaml ; JSON, but readable
+ ;;zig ; C, but simpler
+
+ :email
+ (mu4e +gmail)
+ ;;notmuch
+ ;;(wanderlust +gmail)
+
+ :app
+ ;;calendar
+ ;;emms
+ ;;everywhere ; *leave* Emacs!? You must be joking
+ ;;irc ; how neckbeards socialize
+ ;;(rss +org) ; emacs as an RSS reader
+ ;;twitter ; twitter client https://twitter.com/vnought
+
+ :config
+ ;;literate
+ (default +bindings +smartparens))
diff --git a/doom-emacs/.config/doom/packages.el b/doom-emacs/.config/doom/packages.el
new file mode 100644
index 0000000..ef608b6
--- /dev/null
+++ b/doom-emacs/.config/doom/packages.el
@@ -0,0 +1,52 @@
+;; -*- no-byte-compile: t; -*-
+;;; $DOOMDIR/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 SOME-PACKAGE from MELPA, ELPA or emacsmirror:
+;(package! some-package)
+
+;; To install a package directly from a remote git repo, you must specify a
+;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
+;; https://github.com/raxod502/straight.el#the-recipe-format
+;(package! another-package
+; :recipe (:host github :repo "username/repo"))
+
+;; If the package you are trying to install does not contain a PACKAGENAME.el
+;; file, or is located in a subdirectory of the repo, you'll need to specify
+;; `:files' in the `:recipe':
+;(package! this-package
+; :recipe (:host github :repo "username/repo"
+; :files ("some-file.el" "src/lisp/*.el")))
+
+;; If you'd like to disable a package included with Doom, you can do so here
+;; with the `:disable' property:
+;(package! builtin-package :disable t)
+
+;; You can override the recipe of a built in package without having to specify
+;; all the properties for `:recipe'. These will inherit the rest of its recipe
+;; from Doom or MELPA/ELPA/Emacsmirror:
+;(package! builtin-package :recipe (:nonrecursive t))
+;(package! builtin-package-2 :recipe (:repo "myfork/package"))
+
+;; Specify a `:branch' to install a package from a particular branch or tag.
+;; This is required for some packages whose default branch isn't 'master' (which
+;; our package manager can't deal with; see raxod502/straight.el#279)
+;(package! builtin-package :recipe (:branch "develop"))
+
+;; Use `:pin' to specify a particular commit to install.
+;(package! builtin-package :pin "1a2b3c4d5e")
+
+
+;; Doom's packages are pinned to a specific commit and updated from release to
+;; release. The `unpin!' macro allows you to unpin single packages...
+;(unpin! pinned-package)
+;; ...or multiple packages
+;(unpin! pinned-package another-pinned-package)
+;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
+;(unpin! t)
+
+(package! evil-tutor)
diff --git a/doom-emacs/.config/doom/themes/la-ninpre-theme.el b/doom-emacs/.config/doom/themes/la-ninpre-theme.el
new file mode 100644
index 0000000..dba4334
--- /dev/null
+++ b/doom-emacs/.config/doom/themes/la-ninpre-theme.el
@@ -0,0 +1,118 @@
+;;; la-ninpre-theme.el --- color theme by la-ninpre -*- lexical-binding: t; no-byte-compile: t; -*-
+
+;; Author: la-ninpre
+;; Maintainer: la-ninpre
+;; Version: 0.1
+
+;;; Commentary:
+
+;; custom color theme by la-ninpre.
+;; part of the code is taken from `doom-tomorrow-night' theme.
+;; all colors are set by la-ninpre.
+
+;;; Code:
+
+(require 'doom-themes)
+
+(defgroup la-ninpre-theme nil
+ "Options for the `la-ninpre' theme."
+ :group 'doom-themes)
+
+(defcustom la-ninpre-padded-modeline doom-themes-padded-modeline
+ "If non-nil, adds a 4px padding to the mode-line. Can be an integer
+to deremine the exact padding"
+ :group 'la-ninpre-theme
+ :type '(choice integer boolean))
+
+(def-doom-theme la-ninpre
+ "Color theme by la-ninpre."
+
+ ;; bg gui 256 16
+ ((bg '("#19191a" nil nil))
+ (bg-alt '("#141414" nil nil))
+ (base0 '("#232324" "black" "black"))
+ (base1 '("#363638" "#363638" ))
+ (base2 '("#3f3f42" "#3f3f42" ))
+ (base3 '("#49494c" "#49494c" "brightblack"))
+ (base4 '("#535356" "#535356" "brightblack"))
+ (base5 '("#66666a" "#66666a" "brightblack"))
+ (base6 '("#ceced2" "#ceced2" "brightblack"))
+ (base7 '("#d3d3d7" "#d3d3d7" "brightblack"))
+ (base8 '("#dddde1" "#dddde1" "white"))
+ (fg '("#cadcde" "#cadcde" "white"))
+ (fg-alt (doom-darken fg 0.4))
+
+ (grey '("#393838" "#393838" "brightblack"))
+ (red '("#ed7c68" "#ed7c68" "red"))
+ (orange '("#f9a776" "#f9a776" "brightred"))
+ (yellow '("#ffdb9d" "#ffdb9d" "yellow"))
+ (green '("#c7ea76" "#c7ea76" "green"))
+ (teal '("#7f9848" "#7f9848" "teal"))
+ (blue '("#a6d5fe" "#a6d5fe" "brightblue"))
+ (dark-blue '("#4e96d5" "#4e96d5" "blue"))
+ (violet '("#edbbe9" "#edbbe9" "brightmagenta"))
+ (magenta '("#bc5fa7" "#edbbe9" "magenta"))
+ (dark-cyan '("#7fe2c5" "#7fe2c5" "cyan"))
+ (cyan '("#55b795" "#55b795" "brightcyan"))
+
+ (highlight blue)
+ (vertical-bar base0)
+ (selection `(,(car (doom-lighten bg 0.1)) ,@(cdr base4)))
+ (builtin blue)
+ (comments grey)
+ (doc-comments (doom-lighten grey 0.14))
+ (constants orange)
+ (functions blue)
+ (keywords violet)
+ (methods blue)
+ (operators fg)
+ (type yellow)
+ (strings green)
+ (variables red)
+ (numbers orange)
+ (region selection)
+ (error red)
+ (warning yellow)
+ (success green)
+ (vc-modified fg-alt)
+ (vc-added green)
+ (vc-deleted red)
+
+ ;; custom categories
+ (modeline-bg `(,(doom-darken (car bg-alt) 0.3) ,@(cdr base3)))
+ (modeline-bg-alt `(,(car bg) ,@(cdr base1)))
+ (modeline-fg base8)
+ (modeline-fg-alt comments)
+ (-modeline-pad
+ (when la-ninpre-padded-modeline
+ (if (integerp la-ninpre-padded-modeline)
+ la-ninpre-padded-modeline
+ 4))))
+
+ ;; --- faces ------------------------------
+ (((line-number &override) :foreground base4)
+ ((line-number-current-line &override) :foreground blue :bold bold)
+ (mode-line
+ :background modeline-bg :foreground modeline-fg
+ :box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))
+ (mode-line-inactive
+ :background modeline-bg-alt :foreground modeline-fg-alt
+ :box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg-alt)))
+
+ ;;;; rainbow-delimiters
+ (rainbow-delimiters-depth-1-face :foreground violet)
+ (rainbow-delimiters-depth-2-face :foreground blue)
+ (rainbow-delimiters-depth-3-face :foreground orange)
+ (rainbow-delimiters-depth-4-face :foreground green)
+ (rainbow-delimiters-depth-5-face :foreground magenta)
+ (rainbow-delimiters-depth-6-face :foreground yellow)
+ (rainbow-delimiters-depth-7-face :foreground teal)
+ ;;;; doom-modeline
+ (doom-modeline-buffer-path :foreground violet :bold bold)
+ (doom-modeline-buffer-major-mode :inherit 'doom-modeline-buffer-path))
+
+ ;; --- variables --------------------------
+ ;; ()
+ )
+
+;;; la-ninpre-theme.el ends here
diff --git a/doom-emacs/.config/mbsyncrc-example b/doom-emacs/.config/mbsyncrc-example
new file mode 100644
index 0000000..0dd98a3
--- /dev/null
+++ b/doom-emacs/.config/mbsyncrc-example
@@ -0,0 +1,72 @@
+IMAPAccount acct-1
+Host imap.example.com
+User acct-1@example.com
+PassCmd "gpg --quiet --decrypt ~/.password-store/acct-1.gpg"
+SSLType STARTTLS
+
+IMAPStore acct-1-remote
+Account acct-1
+
+MaildirStore acct-1-local
+Path ~/Documents/mail/acct-1/
+Inbox ~/Documents/mail/acct-1/INBOX
+SubFolders Verbatim
+
+Channel acct-1
+Far :acct-1-remote:
+Near :acct-1-local:
+Patterns * !Archives
+Create Both
+Expunge Both
+SyncState *
+
+# ============================
+
+IMAPAccount acct-2
+Host imap.gmail.com
+User acct-2@gmail.com
+PassCmd "gpg --quiet --decrypt ~/.password-store/self/acct-2.gpg"
+SSLType IMAPS
+
+IMAPStore acct-2-remote
+Account acct-2
+
+MaildirStore acct-2-local
+Path ~/Documents/mail/acct-2/
+Inbox ~/Documents/mail/acct-2/INBOX
+
+Channel acct-2-inbox
+Far :acct-2-remote:
+Near :acct-2-local:
+Patterns "INBOX"
+Create Both
+Expunge Both
+SyncState *
+
+Channel acct-2-trash
+Far :acct-2-remote:"[Gmail]/Bin"
+Near :acct-2-local:"[Gmail].Bin"
+Create Both
+Expunge Both
+SyncState *
+
+Channel acct-2-sent
+Far :acct-2-remote:"[Gmail]/Sent Mail"
+Near :acct-2-local:"[Gmail].Sent Mail"
+Create Both
+Expunge Both
+SyncState *
+
+Channel acct-2-starred
+Far :acct-2-remote:"[Gmail]/Starred"
+Near :acct-2-local:"[Gmail].Starred"
+Create Both
+Expunge Both
+SyncState *
+
+Group acct-2
+Channel acct-2-inbox
+Channel acct-2-sent
+Channel acct-2-trash
+Channel acct-2-all
+Channel acct-2-starred
diff --git a/install b/install
index 4de409b..519de59 100755
--- a/install
+++ b/install
@@ -1,6 +1,6 @@
#!/bin/sh
-for prg in alacritty bin bash moc nvim starship xmonad
+for prg in alacritty bin bash doom-emacs moc nvim starship xmonad
do
stow -vDt ~ "$prg"
stow -vt ~ "$prg"