commit f5892a27f374d8f253fbd59f7481477767c51371 parent 6c4425c8865de8436ed5da0fa100752fb7504cbd Author: Yohanes Bandung Bondowoso <hi@ybbond.dev> Date: Wed, 1 Jul 2020 12:01:21 +0700 update doom, performance and convenience for org-roam Diffstat:
| M | .doom.d/+org.el | | | 55 | +++++++++++++++++++++++++++++++------------------------ |
| M | .doom.d/+ui.el | | | 40 | +++++----------------------------------- |
| M | .doom.d/config.el | | | 30 | +++++++++++++++++++++++++++++- |
| M | .doom.d/init.el | | | 5 | ++++- |
| M | .doom.d/packages.el | | | 10 | +++------- |
5 files changed, 72 insertions(+), 68 deletions(-)
diff --git a/.doom.d/+org.el b/.doom.d/+org.el @@ -11,19 +11,6 @@ org-id-link-to-org-use-id t org-ellipsis " ▼ ") -;; I use C-c c to start capture mode -(global-set-key (kbd "C-c c") 'org-capture) - -(setq org-todo-state-tags-triggers - (quote (("CANCELLED" ("CANCELLED" . t)) - ("WAITING" ("WAITING" . t)) - ("HOLD" ("WAITING") ("HOLD" . t)) - (done ("WAITING") ("HOLD")) - ("TODO" ("WAITING") ("CANCELLED") ("HOLD")) - ("NEXT" ("WAITING") ("CANCELLED") ("HOLD")) - ("DONE" ("WAITING") ("CANCELLED") ("HOLD"))))) - - (use-package! org-roam :hook (after-init . org-roam-mode)) @@ -44,13 +31,16 @@ - source :: ${ref} * Highlights\n" - :unnarrowed t)))) + :immediate-finish t + :unnarrowed t + :config + (add-hook! 'after-init-hook 'org-roam-db-build-cache))))) (setq org-roam-dailies-capture-templates '(("d" "daily" plain (function org-roam-capture--get-point) "%?" - :immediate-finish t :file-name "journals/%<%Y-%m-%d>" + :immediate-finish t :head "#+title: %<%A>, %<%d> %<%B> %<%Y> #+roam_tags: journals\n" :unnarrowed t))) @@ -60,24 +50,36 @@ "%?" :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title}\n" + :immediate-finish t + :unnarrowed t) + ("k" "kumparan" plain (function org-roam-capture--get-point) + "%?" + :file-name "kumparan/%<%Y%m%d%H%M%S>-${slug}" + :head "#+title: ${title} +#+roam_tags: kumparan +- backlinks :: [[file:../20200630143644-kumparan.org][kumparan]]" + :immediate-finish t :unnarrowed t) ("c" "companies" plain (function org-roam-capture--get-point) "%?" - :file-name "companies/%<%Y%m%d%H%M%S>-${slug}" + :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title} #+roam_tags: companies\n" + :immediate-finish t :unnarrowed t) ("p" "products" plain (function org-roam-capture--get-point) "%?" - :file-name "products/%<%Y%m%d%H%M%S>-${slug}" + :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title} #+roam_tags: products\n" + :immediate-finish t :unnarrowed t) ("i" "people" plain (function org-roam-capture--get-point) "%?" - :file-name "people/%<%Y%m%d%H%M%S>-${slug}" + :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title} #+roam_tags: people\n" + :immediate-finish t :unnarrowed t))) (use-package! deft @@ -95,16 +97,21 @@ :bind ("C-c n j" . org-journal-new-entry) :config - (setq org-journal-dir "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes/journals/") - (setq org-journal-date-prefix "#+title: ") - (setq org-journal-file-format "%Y-%m-%d.org") - (setq org-journal-date-format "%A, %d %B %Y\n#+roam_tags: journals\n")) -(setq org-journal-enable-agenda-integration t) + (setq org-journal-dir "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes/journals/" + org-journal-date-prefix "#+title: " + org-journal-file-format "%Y-%m-%d.org" + org-journal-date-format "%A, %d %B %Y\n#+roam_tags: journals\n" + org-journal-enable-agenda-integration t + org-journal-carryover-delete-empty-journal nil)) (after! org (map! :map org-mode-map :n "M-j" #'org-metadown - :n "M-k" #'orge-metaup)) + :n "M-k" #'orge-metaup) + :config + (setq org-id-link-to-org-use-id nil + org-pretty-entities t + org-hide-emphasis-markers t)) (use-package! org-roam-server :ensure t diff --git a/.doom.d/+ui.el b/.doom.d/+ui.el @@ -2,38 +2,14 @@ ;; source https://github.com/theianjones/dotfiles/blob/master/.doom.d/+ui.el -;; 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 "IBM Plex Mono" :size 14)) - -;; (use-package mixed-pitch -;; :hook -;; ;; If you want it in all text modes: -;; (text-mode . mixed-pitch-mode)) - -;; 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: -;; light theme: white -(setq doom-theme 'doom-one) - - -;; 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) +;; Better visual line +(use-package evil-better-visual-line + :ensure t + :config + (evil-better-visual-line-on)) -;; ;; Better Copy-Paste and Clipboard Handling -;; ;; Disable Emacs' integration of killring with clipboard (setq select-enable-clipboard nil) ;; Remove hook for clipboard configurations from Emacs to command mode @@ -70,9 +46,3 @@ dired-dwim-target t dired-recursive-copies (quote always) dired-recursive-deletes (quote top))) - -;; Better visual line -(use-package evil-better-visual-line - :ensure t - :config - (evil-better-visual-line-on)) diff --git a/.doom.d/config.el b/.doom.d/config.el @@ -16,6 +16,35 @@ (setq user-full-name "Yohanes Bandung Bondowoso" user-mail-address "hi@ybbond.dev") +;; 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 "IBM Plex Mono" :size 14)) + +;; (use-package mixed-pitch +;; :hook +;; ;; If you want it in all text modes: +;; (text-mode . mixed-pitch-mode)) + +;; 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: +;; light theme: white +(setq doom-theme 'doom-gruvbox) + +(setq doom-incremental-load-immediately nil) + +(setq display-line-numbers-type 'relative) + +(setq whitespace-action '(auto-cleanup)) + (load! "+ui") (load! "+org") @@ -36,7 +65,6 @@ ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. -;; (map! :iv "s-v" (lambda! (evil-paste-from-register ?+))) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/.doom.d/init.el b/.doom.d/init.el @@ -22,7 +22,7 @@ (company +childframe) ; 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 + (ivy +fuzzy) ; a search engine for love and life :ui deft ; notational velocity for Emacs @@ -184,3 +184,6 @@ (setq evil-esc-delay 1) (setq evil-kill-on-visual-paste nil) ;; (setq evil-want-minibuffer t) + + +(setq savehist-mode -1) diff --git a/.doom.d/packages.el b/.doom.d/packages.el @@ -49,11 +49,7 @@ ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;(unpin! t) +(package! evil-better-visual-line) (package! org-journal) -;; (package! org-roam-server -;; :recipe (:host github :repo "org-roam/org-roam-server")) -;; (use-package! easy-hugo -;; :init -;; (setq easy-hugo-basedir "~/projects/bandung/ybbond/") -;; (setq easy-hugo-url "https://ybbond.dev") -;; :bind ("C-c C-e" . easy-hugo)) +(package! org-roam-server + :recipe (:host github :repo "org-roam/org-roam-server"))