From c3baeecc2d73d4e1cbf52096067fb515c25b5c2a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 23 Apr 2022 12:17:38 -0400 Subject: [PATCH] add option to ignore ido.last errors on exit as its history is non-critical and the prompt is more annoying/problematic than any history loss --- common/_global.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/_global.el b/common/_global.el index fc8bf6c..9fc99da 100644 --- a/common/_global.el +++ b/common/_global.el @@ -197,6 +197,8 @@ (setq ido-enable-flex-matching t) (setq ido-everywhere t) (ido-mode 1) +(defun ido-kill-emacs-hook () + (ignore-errors (ido-save-history))) (setq-default tab-width 4) ; sanity! (electric-indent-mode 0) ; return should NOT fuck with the indentation of the previous line