4 changed files with 485 additions and 0 deletions
@ -0,0 +1,69 @@
@@ -0,0 +1,69 @@
|
||||
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- |
||||
|
||||
(setq user-full-name "{{ .me.name }}" |
||||
user-mail-address "{{ .me.email }}" |
||||
doom-font (font-spec :family "JetBrains Mono" :size 14) |
||||
doom-variable-pitch-font (font-spec :family "Fira Sans" :size 14) |
||||
doom-theme 'doom-one-light |
||||
org-directory "~/Documents/Zettelkasten/" |
||||
display-line-numbers-type nil |
||||
delete-selection-mode nil |
||||
writeroom-width 100 |
||||
ruby-insert-encoding-magic-comment nil |
||||
git-gutter-fr+-side (quote left-fringe) |
||||
helm-org-rifle-show-path t |
||||
) |
||||
|
||||
(map! :leader |
||||
(:prefix-map ("l" . "org-stuff") |
||||
:desc "My Agenda" "a" #'bascht/org-agenda |
||||
:desc "My Inbox" "i" #'bascht/mu4e-inbox |
||||
:desc "Cycle all agenda files" "o" #'helm-org-rifle-agenda-files |
||||
:desc "Go to current clock" "k" #'org-clock-goto |
||||
:desc "Start my daily review" "d" #'bascht/daily-review |
||||
:desc "Jump to org file" "g" #'bascht/go-to-org-file |
||||
:desc "Clock in Alfatraing" "ca" #'bascht/alfatraining-clock-in |
||||
:desc "Clock in most recent item" "cr" #'org-mru-clock-in |
||||
:desc "" "td" (lambda () (interactive) (load-theme 'doom-one nil t)) |
||||
:desc "" "tl" (lambda () (interactive) (load-theme 'doom-one-light nil t)) |
||||
) |
||||
:desc "" "oc" #'org-capture |
||||
:desc "" "rl" #'org-refile-goto-last-stored |
||||
:desc "" "jt" #'org-journal-new-entry |
||||
:desc "" "jy" #'bascht/goto-yesterdays-journal |
||||
:desc "" "glu" #'mu4e-view-go-to-url |
||||
:desc "" "drr" #'rake |
||||
:desc "" "drl" #'rake-rerun |
||||
) |
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.txt$" . markdown-mode)) |
||||
(add-to-list 'auto-mode-alist '("\\.journal\\'" . ledger-mode)) |
||||
|
||||
(add-hook 'yaml-mode-hook |
||||
(lambda () |
||||
(indent-guide-mode 1) |
||||
(auto-fill-mode -1) |
||||
(flyspell-mode -1) |
||||
(flyspell-prog-mode) |
||||
(flycheck-mode 1) |
||||
(flycheck-yamllint-setup) |
||||
(flycheck-select-checker 'yaml-yamllint) |
||||
)) |
||||
|
||||
(add-hook 'git-commit-mode-hook (lambda () |
||||
(end-of-line) |
||||
(evil-insert-state))) |
||||
|
||||
(add-hook 'org-capture-mode-hook 'evil-insert-state) |
||||
|
||||
(after! forge |
||||
(add-to-list 'forge-alist '({{- range .git.forges }}"{{.}}" {{ end }}forge-gitlab-repository))) |
||||
|
||||
(setq org-link-abbrev-alist |
||||
'({{- range .bookmarks -}} |
||||
("{{ .name }}" . "{{ .url }}") |
||||
{{ end -}} |
||||
)) |
||||
|
||||
(load! "mail.el") |
||||
(load! "org.el") |
@ -0,0 +1,84 @@
@@ -0,0 +1,84 @@
|
||||
;;; init.el -*- lexical-binding: t; -*- |
||||
|
||||
|
||||
(doom! :input |
||||
:completion |
||||
company ; the ultimate code completion backend |
||||
ivy ; a search engine for love and life |
||||
|
||||
:ui |
||||
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) ; 🙂 |
||||
fill-column ; a `fill-column' indicator |
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW |
||||
ligatures ; ligatures and symbols to make your code pretty again |
||||
modeline ; snazzy, Atom-inspired modeline, plus API |
||||
nav-flash ; blink cursor line after big motions |
||||
ophints ; highlight the region an operation acts on |
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows |
||||
treemacs ; a project drawer, like neotree but cooler |
||||
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 |
||||
multiple-cursors ; editing in many places at once |
||||
snippets ; my elves. They type so I don't have to |
||||
|
||||
:emacs |
||||
dired ; making dired pretty [functional] |
||||
electric ; smarter, keyword-based electric-indent |
||||
undo ; persistent, smarter undo for your inevitable mistakes |
||||
vc ; version-control and Emacs, sitting in a tree |
||||
|
||||
:term |
||||
vterm ; the best terminal emulation in Emacs |
||||
|
||||
:checkers |
||||
(syntax +childframe) ; tasing you for every semicolon you forget |
||||
(spell +flyspell) ; tasing you for misspelling mispelling |
||||
grammar ; tasing grammar mistake every you make |
||||
|
||||
:tools |
||||
docker |
||||
editorconfig ; let someone else argue about tabs vs spaces |
||||
(eval +overlay) ; run code, run (also, repls) |
||||
lookup ; navigate your code and its documentation |
||||
magit ; a git porcelain for Emacs |
||||
make ; run make tasks from Emacs |
||||
pdf ; pdf enhancements |
||||
terraform ; infrastructure as code |
||||
tmux ; an API for interacting with tmux |
||||
|
||||
:os |
||||
(:if IS-MAC macos) ; improve compatibility with macOS |
||||
tty ; improve the terminal Emacs experience |
||||
|
||||
:lang |
||||
emacs-lisp ; drown in parentheses |
||||
(go +lsp) ; the hipster dialect |
||||
json ; At least it ain't XML |
||||
ledger ; an accounting system in Emacs |
||||
markdown ; writing docs for people to ignore |
||||
org ; organize your plain life in plain text |
||||
(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} |
||||
sh ; she sells {ba,z,fi}sh shells on the C xor |
||||
yaml ; JSON, but readable |
||||
|
||||
:email |
||||
(mu4e) |
||||
|
||||
:app |
||||
calendar |
||||
everywhere ; *leave* Emacs!? You must be joking |
||||
(rss +org) ; emacs as an RSS reader |
||||
|
||||
:config |
||||
(default +bindings +smartparens)) |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
;; -*- no-byte-compile: t; -*- |
||||
;;; $DOOMDIR/packages.el |
||||
|
||||
(package! org-super-agenda) |
||||
(package! org-mru-clock) |
||||
(package! toml-mode) |
||||
(package! org-journal) |
||||
(package! org-alert) |
||||
|
||||
{{- range .doom.extra_packages }} |
||||
(package! {{ . }}) |
||||
{{- end }} |
Loading…
Reference in new issue