dotfiles

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

commit 6c4425c8865de8436ed5da0fa100752fb7504cbd
parent 1678c9774799239706e8fb0446158a405eed7c1d
Author: Yohanes Bandung Bondowoso <hi@ybbond.dev>
Date:   Sun, 28 Jun 2020 14:40:17 +0700

update doom settings

Diffstat:
M.doom.d/+org.el | 36++++++++++++++++++++----------------
M.doom.d/+ui.el | 20++++++++++++++------
M.doom.d/config.el | 12++++++++++++
M.doom.d/init.el | 2+-

4 files changed, 47 insertions(+), 23 deletions(-)

diff --git a/.doom.d/+org.el b/.doom.d/+org.el
@@ -40,9 +40,10 @@
 #+author: ${author}
 #+roam_key: ${ref}
 #+roam_tags: web_references
-- tags :: [[file:../tags/20200626210745-t_web_references.org|t:web_references]]
 - saved :: ${savedDate}
-- source :: ${ref}\n\n* Highlights\n"
+- source :: ${ref}
+
+* Highlights\n"
            :unnarrowed t))))
 
   (setq org-roam-dailies-capture-templates
@@ -50,7 +51,8 @@
       "%?"
       :immediate-finish t
       :file-name "journals/%<%Y-%m-%d>"
-      :head "#+title: %<%A>, %<%d> %<%B> %<%Y>\n#+roam_tags: journals\n"
+      :head "#+title: %<%A>, %<%d> %<%B> %<%Y>
+#+roam_tags: journals\n"
       :unnarrowed t)))
 
   (setq org-roam-capture-templates
@@ -59,31 +61,23 @@
            :file-name "%<%Y%m%d%H%M%S>-${slug}"
            :head "#+title: ${title}\n"
            :unnarrowed t)
-          ("t" "tags" plain (function org-roam-capture--get-point)
-           "%?"
-           :file-name "tags/%<%Y%m%d%H%M%S>-${slug}"
-           :head "#+title: ${title}\n#+roam_tags: tags"
-           :unnarrowed t)
           ("c" "companies" plain (function org-roam-capture--get-point)
            "%?"
            :file-name "companies/%<%Y%m%d%H%M%S>-${slug}"
            :head "#+title: ${title}
-#+roam_tags: companies
-- tags :: [[file:../tags/20200626210315-t_companies.org|t:companies]]\n"
+#+roam_tags: companies\n"
            :unnarrowed t)
           ("p" "products" plain (function org-roam-capture--get-point)
            "%?"
            :file-name "products/%<%Y%m%d%H%M%S>-${slug}"
            :head "#+title: ${title}
-#+roam_tags: products
-- tags :: [[file:../tags/20200626205545-t_products.org|t:products]]\n"
+#+roam_tags: products\n"
            :unnarrowed t)
           ("i" "people" plain (function org-roam-capture--get-point)
            "%?"
            :file-name "people/%<%Y%m%d%H%M%S>-${slug}"
            :head "#+title: ${title}
-#+roam_tags: people
-- tags :: [[file:../tags/20200626210651-t_people.org|t:people]]\n"
+#+roam_tags: people\n"
            :unnarrowed t)))
 
 (use-package! deft
@@ -112,8 +106,18 @@
         :n "M-j" #'org-metadown
         :n "M-k" #'orge-metaup))
 
-;; (use-package! org-roam-server
-;;     :ensure t)
+(use-package! org-roam-server
+  :ensure t
+  :config
+  (setq org-roam-server-host "127.0.0.1"
+        org-roam-server-port 3001
+        org-roam-server-export-inline-images t
+        org-roam-server-authenticate nil
+        org-roam-server-network-poll t
+        org-roam-server-network-arrows nil
+        org-roam-server-network-label-truncate t
+        org-roam-server-network-label-truncate-length 60
+        org-roam-server-network-label-wrap-length 20))
 
 ;; (add-hook 'org-roam-server-mode (lambda () (browse-url-chrome "http://localhost:3001")))
 
diff --git a/.doom.d/+ui.el b/.doom.d/+ui.el
@@ -30,19 +30,21 @@
 ;; numbers are disabled. For relative line numbers, set this to `relative'.
 (setq display-line-numbers-type 'relative)
 
-;; Emacs Configurations
-(setq select-enable-clipboard nil)
 
-;; remove hook for clipboard configurations from emacs to command mode
+;;
+;; 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
 (remove-hook 'tty-setup-hook 'doom-init-clipboard-in-tty-emacs-h)
-
-;; enable ⌘+c and ⌘+v for clipboard handling
+;; Enable ⌘+c and ⌘+v for clipboard handling
 (defun rc-clipboard-yank ()
   "Copies the active region to the system clipboard."
   (interactive)
   (when (region-active-p)
     (gui-set-selection 'CLIPBOARD
-                       (buffer-substring (region-beginning) (region-end)))))
+      (buffer-substring (region-beginning) (region-end)))))
 (defun rc-clipboard-paste ()
   "Pastes text from the system clipboard."
   (interactive)
@@ -68,3 +70,9 @@
         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
@@ -37,3 +37,15 @@
 ;; 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.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages (quote (org-roam-server evil-better-visual-line))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; 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.
+ )
diff --git a/.doom.d/init.el b/.doom.d/init.el
@@ -179,7 +179,7 @@
        (default +bindings +smartparens))
 
 ;; Evil Configurations
-(setq evil-respect-visual-line-mode t)
+;; (setq evil-respect-visual-line-mode t)
 (setq evil-move-cursor-back nil)
 (setq evil-esc-delay 1)
 (setq evil-kill-on-visual-paste nil)