dotfiles

feels like ${HOME}
Log | Files | Refs | README

commit e88a570b64e3a72938b31cbbdb2dafd6b5fe7859
parent e83b07474e881fde80060711dd7ab6ab2ce5ac7f
Author: Yohanes Bandung Bondowoso <hi@ybbond.dev>
Date:   Tue, 22 Sep 2020 20:27:45 +0700

update all

Diffstat:
M.config/nvim/init.vim | 4++++
M.doom.d/+org.el | 48++++++++++++++++++++++++++++--------------------
M.doom.d/custom.el | 3---
M.doom.d/init.el | 4++--
M.zshrc | 7++++---
MLibrary/Application Support/Code/User/settings.json | 2+-

6 files changed, 39 insertions(+), 29 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -41,6 +41,10 @@ call plug#begin(s:plugin_location)
   " *vim-easymotion*
   " Plug 'easymotion/vim-easymotion'
 
+  " *vim-searchindex*
+  " Plug 'google/vim-searchindex'
+  "   let g:searchindex_line_limit=10000000
+
   " *vim-sneak*
   Plug 'justinmk/vim-sneak'
 
diff --git a/.doom.d/+org.el b/.doom.d/+org.el
@@ -5,22 +5,19 @@
 (use-package! org-roam
   :hook
   (after-init . org-roam-mode))
-; (setq org_notes "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes")
-  ;; (setq org_notes "~/org/Notes")
   (setq org_notes "~/Library/Mobile Documents/iCloud~com~appsonthemove~beorg/Documents/org/")
 
 (after! org-roam
   (add-hook 'after-init-hook 'org-roam-mode)
   :config
   (setq org-roam-directory org_notes)
-  ; (setq org-roam-db-location "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes/org-roam.db")
   (setq org-roam-db-location "~/org/org-roam.db")
   (setq org-roam-link-title-format "[[%s]]")
   (setq org-roam-graph-viewer "/usr/bin/open")
   (setq org-roam-capture-ref-templates
         '(("r" "ref" plain (function org-roam-capture--get-point)
            "%?"
-           :file-name "websites/${slug}"
+           :file-name "${slug}"
            :head "#+title: ${title}
 #+author: ${author}
 #+roam_key: ${ref}
@@ -37,10 +34,12 @@
   (setq org-roam-dailies-capture-templates
     '(("d" "daily" plain (function org-roam-capture--get-point)
       "%?"
-      :file-name "journals/%<%Y-%m-%d>"
+      :file-name "%<%Y-%m-%d>"
       :immediate-finish t
       :head "#+title: %<%A>, %<%d> %<%B> %<%Y>
-#+roam_tags: journals\n"
+#+roam_tags: journals\n
+\n
+* %<%A>, %<%d> %<%B> %<%Y>"
       :unnarrowed t)))
 
   (setq org-roam-capture-templates
@@ -52,10 +51,10 @@
            :unnarrowed t)
           ("k" "kumparan" plain (function org-roam-capture--get-point)
            "%?"
-           :file-name "kumparan/%<%Y%m%d%H%M%S>-${slug}"
+           :file-name "%<%Y%m%d%H%M%S>-${slug}"
            :head "#+title: ${title}
 #+roam_tags: kumparan
-- backlinks :: [[file:../20200630143644-kumparan.org][kumparan]]"
+- backlinks :: [[file:20200630143644-kumparan.org][kumparan]]"
            :immediate-finish t
            :unnarrowed t)
           ("c" "companies" plain (function org-roam-capture--get-point)
@@ -105,15 +104,17 @@
   ("C-c b" . org-journal-previous-entry)
   ("C-c f" . org-journal-next-entry)
   :config
-  (setq org-journal-dir "~/Library/Mobile Documents/iCloud~com~appsonthemove~beorg/Documents/org/journals/"
-        ; org-journal-dir "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes/journals/"
-        ; org-journal-dir "~/org/Notes/journals/"
+  (setq org-journal-dir org_notes
         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-date-format "%A, %d %B %Y\n#+roam_tags: journals\n\n* %A, %d %B %Y\n"))
 
 (after! org
+  :init
+  (require 'find-lisp)
+  (setq org-agenda-files (find-lisp-find-files org_notes "\.org$"))
+  (setq org-agenda-start-with-log-mode '(state))
+  (setq org-agenda-start-day "-9d")
   (map! :map org-mode-map
         :n "M-j" #'org-metadown
         :n "M-k" #'orge-metaup)
@@ -122,18 +123,25 @@
         org-ellipsis " ▼ "
         org-id-link-to-org-use-id nil
         org-pretty-entities t
+        org-log-done 'note
+        org-log-into-drawer t
+        org-log-refile t
         org-src-fontify-natively t
         org-hide-emphasis-markers t)
   (setq org-todo-keywords
-        '((sequence "TODO(t)" "PRGS(p)" "TEST(i)" "FDBK(f)" "HOLD(h)" "|" "DONE(d)" "CANCELED(c)")
+        '((sequence "TODO(t!)" "INPROGRESS(p!)" "INTEST(i!)" "FEEDBACK(f!)" "HOLD(h!)" "|" "MERGED(m!)" "DONE(d@/!)" "CANCELLED(c!)")
           (sequence "[ ](T)" "[-](S)" "[?](W)" "|" "[X](D)")))
   (setq org-todo-keyword-faces
-        '(("[-]" . +org-todo-active)
-          ("PRGS" . +org-todo-active)
-          ("[?]" . +org-todo-onhold)
-          ("FDBK" . +org-todo-onhold)
-          ("TEST" . +org-todo-onhold)
-          ("HOLD" . +org-todo-project))))
+        '(("TODO" :foreground "ffff00" :weight normal :underline t)
+          ("INPROGRESS" :foreground "#e39ff6" :weight normal :underline t)
+          ("INTEST" :foreground "#0098dd" :weight normal :underline t)
+          ("FEEDBACK" :foreground "#0098ee" :weight normal :underline t)
+          ("HOLD" :foreground "#9f7efe" :weight normal :underline t)
+          ("MERGED" :foreground "#50a14f" :weight normal :underline t)
+          ("DONE" :foreground "#50a14f" :weight bold :underline t)
+          ("CANCELLED" :foreground "#ff6480" :weight normal :underline t)
+          ("[-]" :foreground "#e39ff6" :weight bold)
+          ("[?]" :foreground "#9f7efe" :weight bold))))
 
 (use-package! org-roam-server
   :config
diff --git a/.doom.d/custom.el b/.doom.d/custom.el
@@ -3,9 +3,6 @@
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
- '(org-agenda-files
-   (quote
-    ("/Users/yohanesbandung/Library/Mobile Documents/iCloud~com~appsonthemove~beorg/Documents/org/journals/2020-08-22.org")))
  '(package-selected-packages (quote (org-roam-server evil-better-visual-line))))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
diff --git a/.doom.d/init.el b/.doom.d/init.el
@@ -92,7 +92,7 @@
        ;;gist              ; interacting with github gists
        lookup              ; navigate your code and its documentation
        ;;lsp
-       ;; macos             ; MacOS-specific commands
+       macos             ; MacOS-specific commands
        magit             ; a git porcelain for Emacs
        ;;make              ; run make tasks from Emacs
        ;;pass              ; password manager for nerds
@@ -141,7 +141,7 @@
        ;;nim               ; python + lisp at the speed of c
        ;;nix               ; I hereby declare "nix geht mehr!"
        ;;ocaml             ; an objective camel
-       (org +roam)               ; organize your plain life in plain text
+       (org +journal +roam)               ; organize your plain life in plain text
        ;;php               ; perl's insecure younger brother
        ;;plantuml          ; diagrams for confusing people more
        ;;purescript        ; javascript, but functional
diff --git a/.zshrc b/.zshrc
@@ -16,8 +16,6 @@ export PATH=$PATH:$HOME/.cargo/bin
 # export PATH=$PATH:/usr/local/bin
 export PATH=/.config/yarn/global/node_modules/.bin:$PATH./node_modules/.bin:$HOME/.yarn/bin:$HOME
 export PATH=/usr/local/opt/openssl/bin:$PATH
-export PATH=$HOME/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH
-export PATH=$HOME/Library/Python/3.7/bin:$PATH
 export PATH=$PATH:$KUMPATH/yowez-cli/bin
 export GOPATH=$HOME/go
 export PATH=$GOPATH/bin:$PATH
@@ -71,6 +69,10 @@ function test_kantal {
   echo "now your @ argument $@"
 }
 
+function tempjson {
+  nvim ~/tempjson$1.json
+}
+
 function commit {
   git add . && git commit -m "$1"
 }
@@ -129,7 +131,6 @@ alias ybreason="cd ${YBPATH}/ybbond-reason"
 alias ftex="cd ${YBPATH}/latex"
 alias todo="nvim ~/todo.md"
 alias tempbin="nvim ~/tempbin.md"
-alias tempjson="nvim ~/tempjson.json"
 alias personal="nvim ~/personal.md"
 alias mine="nvim ~/Library/Mobile\ Documents/27N4MQEA55~pro~writer/Documents"
 alias fetchwm="WEBMENTIONS_TOKEN=${WMTOKEN} node ${YBPATH}/ybbond/webmentions.js"
diff --git a/Library/Application Support/Code/User/settings.json b/Library/Application Support/Code/User/settings.json
@@ -228,7 +228,7 @@
   "editor.cursorSurroundingLines": 5,
   "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
   "editor.codeLens": false,
-  "window.zoomLevel": -1,
+  "window.zoomLevel": 0,
   "window.titleBarStyle": "native",
   "[markdown]": {
     "editor.wordWrap": "on",