From: Eshel Yaron Date: Fri, 17 Jun 2022 20:14:29 +0000 (+0300) Subject: Minor configuration tweaks X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92aaa6b10c1617d9b832a817ac9ebdd22b893c15;p=dotfiles.git Minor configuration tweaks --- diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 8d27577..6053b50 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -170,6 +170,10 @@ For further information about Elisp headers, see [[info:elisp#Library (setq vertalen--source nil) (setq vertalen-history nil) + (with-eval-after-load 'savehist + (add-to-list 'savehist-additional-variables + 'vertalen-history)) + (defun vertalen (word) "Translate WORD." (interactive (list (read-string "Translate: " nil 'vertalen-history (thing-at-point 'word)))) @@ -184,7 +188,7 @@ For further information about Elisp headers, see [[info:elisp#Library (defun vertalen-at-point () "Translate word at point." - (interactive) + (interactive nil vertalen-mode) (vertalen (thing-at-point 'word t))) (defvar-keymap vertalen-mode-map @@ -513,9 +517,9 @@ refiling directly into deeper headings as well. (defvar esy/org-capture-to-project-heading-history-list nil "History list for 'esy/org-capture-to-project-heading'.") - (require 'savehist) - (add-to-list 'savehist-additional-variables - 'esy/org-capture-to-project-heading-history-list) + (with-eval-after-load 'savehist + (add-to-list 'savehist-additional-variables + 'esy/org-capture-to-project-heading-history-list)) (defun esy/org-capture-to-project-heading () "Prompt for a projects and capture a related task."