dotfiles

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

commit 873ad781aaf57b0b9244f9c66d5a9c1290819fa1
parent c964d84e0ec0031dde8af66edb595d484282b0d4
Author: Yohanes Bandung Bondowoso <hi@ybbond.dev>
Date:   Sat, 11 Jul 2020 12:59:39 +0700

update neovim, doom, and vscode settings

Diffstat:
M.config/nvim/init.vim | 2+-
M.doom.d/+org.el | 26++++++++++++++++----------
MLibrary/Application Support/Code/User/settings.json | 1-

3 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -171,7 +171,7 @@ set pastetoggle=<F2>
 set tabstop=2
 set softtabstop=2
 set shiftwidth=2
-set scrolloff=3
+set scrolloff=2
 set expandtab
 set nowrap
 set linebreak
diff --git a/.doom.d/+org.el b/.doom.d/+org.el
@@ -2,22 +2,17 @@
 
 ;; source https://github.com/theianjones/dotfiles/blob/master/.doom.d/+org.el
 
-(setq org_notes "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes"
-; (setq org_notes "~/Notes"
-      org-directory org_notes
-      deft-directory org_notes
-      org-roam-directory org_notes
-      org-roam-db-location "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes/org-roam.db"
-      org-id-link-to-org-use-id t
-      org-ellipsis " ▼ ")
-
 (use-package! org-roam
   :hook
   (after-init . org-roam-mode))
+(setq org_notes "~/Library/Mobile Documents/com\~apple\~CloudDocs/Notes")
+; (setq org_notes "~/Notes")
 
 (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-graph-viewer "/usr/bin/open")
   (setq org-roam-capture-ref-templates
         '(("r" "ref" plain (function org-roam-capture--get-point)
@@ -67,6 +62,13 @@
 #+roam_tags: companies\n"
            :immediate-finish t
            :unnarrowed t)
+          ("m" "medias" plain (function org-roam-capture--get-point)
+           "%?"
+           :file-name "%<%Y%m%d%H%M%S>-${slug}"
+           :head "#+title: ${title}
+#+roam_tags: medias\n"
+           :immediate-finish t
+           :unnarrowed t)
           ("p" "products" plain (function org-roam-capture--get-point)
            "%?"
            :file-name "%<%Y%m%d%H%M%S>-${slug}"
@@ -89,6 +91,7 @@
   (setq deft-use-filter-string-for-filename t)
   (setq deft-default-extension "org")
   (setq deft-incremental-search t)
+  (setq deft-directory org_notes)
   (add-hook 'after-init-hook 'org-roam-db-build-cache)
   :bind
   ("C-c n d" . deft))
@@ -111,7 +114,10 @@
         :n "M-j" #'org-metadown
         :n "M-k" #'orge-metaup)
   :config
-  (setq org-id-link-to-org-use-id nil
+  (setq org-directory org_notes
+        org-id-link-to-org-use-id t
+        org-ellipsis " ▼ "
+        org-id-link-to-org-use-id nil
         org-pretty-entities t
         org-hide-emphasis-markers t)
   (setq org-todo-keywords
diff --git a/Library/Application Support/Code/User/settings.json b/Library/Application Support/Code/User/settings.json
@@ -242,6 +242,5 @@
   },
   "editor.copyWithSyntaxHighlighting": false,
   "files.simpleDialog.enable": true,
-  "editor.cursorSmoothCaretAnimation": true,
   "workbench.sideBar.location": "right"
 } 
\ No newline at end of file