Compare commits
No commits in common. "02d34dbf7a31667805e33b1385b0588ea5740724" and "fb66ed604104d0b3235230631aecd884c9fdbc00" have entirely different histories.
02d34dbf7a
...
fb66ed6041
1 changed files with 7 additions and 35 deletions
42
init.el
42
init.el
|
@ -8,7 +8,7 @@
|
|||
|
||||
;;; Elpaca setup
|
||||
|
||||
(defvar elpaca-installer-version 0.11)
|
||||
(defvar elpaca-installer-version 0.10)
|
||||
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
||||
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
||||
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
||||
|
@ -672,40 +672,6 @@
|
|||
:after (org-roam citar)
|
||||
:hook (org-roam-mode . org-roam-bibtex-mode))
|
||||
|
||||
(use-package consult-org-roam
|
||||
:ensure t
|
||||
:after org-roam
|
||||
:init
|
||||
(require 'consult-org-roam)
|
||||
;; Activate the minor mode
|
||||
(consult-org-roam-mode 1)
|
||||
:custom
|
||||
;; Use `ripgrep' for searching with `consult-org-roam-search'
|
||||
(consult-org-roam-grep-func #'consult-ripgrep)
|
||||
;; Configure a custom narrow key for `consult-buffer'
|
||||
(consult-org-roam-buffer-narrow-key ?r)
|
||||
;; Display org-roam buffers right after non-org-roam buffers
|
||||
;; in consult-buffer (and not down at the bottom)
|
||||
(consult-org-roam-buffer-after-buffers t)
|
||||
:config
|
||||
;; Eventually suppress previewing for certain functions
|
||||
(consult-customize
|
||||
consult-org-roam-forward-links
|
||||
:preview-key "M-.")
|
||||
:bind
|
||||
;; Define some convenient keybindings as an addition
|
||||
("C-c n e" . consult-org-roam-file-find)
|
||||
("C-c n b" . consult-org-roam-backlinks)
|
||||
("C-c n B" . consult-org-roam-backlinks-recursive)
|
||||
("C-c n l" . consult-org-roam-forward-links)
|
||||
("C-c n r" . consult-org-roam-search))
|
||||
|
||||
(use-package org-download
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'dired-mode-hook 'org-download-enable)
|
||||
(setq org-download-method 'attach))
|
||||
|
||||
(use-package org-roam-ui
|
||||
:ensure
|
||||
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
|
||||
|
@ -720,6 +686,12 @@
|
|||
org-roam-ui-update-on-save t
|
||||
org-roam-ui-open-on-start t))
|
||||
|
||||
(defun dl/org-roam-rg-search ()
|
||||
"Search org-roam directory using 'consult-ripgrep'. With live-preview."
|
||||
(interactive)
|
||||
(let ((consult-ripgrep-command "rg --null --ignore-case --type org --line-buffered --color=always --max-columns=500 --no-heading --line-number . -e ARG OPTS"))
|
||||
(consult-ripgrep org-roam-directory)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;; Programming tools
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue