summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoa2025-02-22 02:43:56 +0800
committernoa2025-02-22 02:43:56 +0800
commit4e5761fa9d966f26daf012edec2864a0c42c6c26 (patch)
treef0387134b0d2afb63e8c69cc595d07e7102ba2ad
parent2f8716bd2c968442a5367182510c34bc74baba93 (diff)
Remove old note system config. Just use org™
-rw-r--r--emacs/init.el33
1 files changed, 0 insertions, 33 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 27f82db..84f57bf 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -446,7 +446,6 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word."
(biblio-download-directory "~/Documents/Library/Papers"))
;;; Taking notes
-
(use-package org
:defer t
:init
@@ -504,44 +503,12 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word."
;; See https://llazarek.github.io/blog/2018/07/organization-with-org-mode.html
;; for configuring the org agenda
-(use-package ctrlj
- :load-path "~/Documents/Projects/2024-10-08 Ctrlj"
- :init (global-unset-key (kbd "C-j"))
- :bind* (("<f2>" . ctrlj/open-note)
- ("C-j C-j" . ctrlj/open-note)
- ;; ("C-j C-n" . ctrlj/new-note)
- ("C-j C-l" . ctrlj/insert-link-to-note)
- ("C-j C-d" . ctrlj/open-todays-diary)
- ("C-j C-a" . ctrlj/view-agenda)
- ("C-j C-o" . ctrlj/jump-to-other-related-note)))
-
;; Experimental website generator
(use-package ox-hugo
:disabled t
:ensure t
:after ox)
-(defun noa/consult-rg-notes ()
- (interactive)
- (consult-ripgrep "~/Documents/Notes"))
-(global-set-key (kbd "C-j C-s") #'noa/consult-rg-notes)
-
-(defvar note/directory "~/Documents/Notes"
- "The directory in which notes are stored.")
-(defvar note/file-ending "md"
- "The file ending for new notes.")
-
-(defun note/new (&optional other-window)
- (interactive "P")
- (let* ((uid (format-time-string "%Y-%m-%d-%H%M%S"))
- (note (concat note/directory "/" uid "." note/file-ending)))
- (if other-window
- (progn
- (insert "[[./" uid ".org]]")
- (find-file-other-window note))
- (find-file note))
- ))
-
;; Markdown
(use-package markdown-mode
:mode ("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode)