configuring
This commit is contained in:
parent
8c52dad480
commit
a4520fcaac
14 changed files with 1767 additions and 14 deletions
21
dotfiles/dot_config/doom/obsidian-config.el
Normal file
21
dotfiles/dot_config/doom/obsidian-config.el
Normal file
|
@ -0,0 +1,21 @@
|
|||
;;; obsidian-config.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; configure obsidian integration for note taking fun times
|
||||
(use-package! obsidian
|
||||
:config
|
||||
(obsidian-specify-path "~/Documents/Obsidian/Primary/")
|
||||
(setq obsidian-inbox-directory "_Inbox")
|
||||
(global-obsidian-mode t)
|
||||
(map! :map obsidian-mode-map
|
||||
"C-c C-o" #'obsidian-follow-link-at-point
|
||||
"C-c C-b" #'obsidian-backlink-jump
|
||||
"C-c C-l" #'obsidian-insert-wikilink)
|
||||
|
||||
;; custom quick capture template for obsidian daily note
|
||||
(defun mnl/obsidian-capture ()
|
||||
"Create new obsidian note. In the `obsidian-inbox-directory' if set otherwise in `obsidian-directory' root."
|
||||
(interactive)
|
||||
(let* ((title (read-from-minibuffer "Title: " (format-time-string "%Y-%m-%d")))
|
||||
(filename (s-concat obsidian-directory "_Journal/" title ".md"))
|
||||
(clean-filename (s-replace "//" "/" filename)))
|
||||
(find-file (expand-file-name clean-filename) t))))
|
Loading…
Add table
Add a link
Reference in a new issue