updates
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
# Emacs temporary files
|
||||
*~
|
||||
\#*\#
|
||||
.#*
|
||||
*.elc
|
||||
|
||||
# Doom/Package generated
|
||||
auto-save-list/
|
||||
tramp/
|
||||
|
||||
# AI Assistant folders
|
||||
.claude/
|
||||
.opencode/
|
||||
|
||||
# MacOS (just in case)
|
||||
.DS_Store
|
||||
|
||||
@@ -6,8 +6,13 @@
|
||||
(load! "development")
|
||||
(load! "org")
|
||||
(load! "ai")
|
||||
(load! "inbox")
|
||||
|
||||
;; Performance tweaks
|
||||
(setq gc-cons-threshold 100000000 ; Increase GC threshold to 100MB
|
||||
gc-cons-percentage 0.6)
|
||||
(run-with-idle-timer 5 t #'garbage-collect)
|
||||
|
||||
;; Keybinding to open inbox.el
|
||||
(map! :leader
|
||||
:desc "Open inbox.el" "f i" #'(lambda () (interactive) (find-file (expand-file-name "inbox.el" doom-user-dir))))
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
;;; inbox.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; Use this file for new packages and configuration snippets
|
||||
;; before sorting them into their proper places.
|
||||
|
||||
@@ -121,10 +121,12 @@
|
||||
|
||||
(defun my/org-download-image-dir-setup ()
|
||||
"Create and set org-download-image-dir relative to current org file."
|
||||
(let* ((current-file-dir (file-name-directory (buffer-file-name)))
|
||||
(let ((filename (buffer-file-name)))
|
||||
(when filename
|
||||
(let* ((current-file-dir (file-name-directory filename))
|
||||
(image-dir (expand-file-name "images" current-file-dir)))
|
||||
(make-directory image-dir t)
|
||||
(setq-local org-download-image-dir image-dir)))
|
||||
(setq-local org-download-image-dir image-dir)))))
|
||||
|
||||
(add-hook 'org-mode-hook #'my/org-download-image-dir-setup)
|
||||
(setq org-download-link-format "[[file:%s]]\n")
|
||||
|
||||
Reference in New Issue
Block a user