From ae69599a0d6e2c00d6405e1ef37f02e2b4970da7 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Sat, 14 Mar 2015 15:19:22 +0100 Subject: [PATCH] Remove hideshow, cleaned up auto-save. --- emacs-init.el | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/emacs-init.el b/emacs-init.el index 4a69668..e82178f 100644 --- a/emacs-init.el +++ b/emacs-init.el @@ -70,22 +70,14 @@ ;; adds all autosave-files (i.e #test.txt#, test.txt~) in one ;; directory, avoid clutter in filesystem. -(defvar emacs-autosave-directory (concat user-emacs-directory "autosaves/")) -(setq backup-directory-alist - `((".*" . ,emacs-autosave-directory)) - auto-save-file-name-transforms - `((".*" ,emacs-autosave-directory t))) +(defvar emacs-autosave-directory + (concat user-emacs-directory "autosaves/") + "This variable dictates where to put auto saves. It is set to a directory +called autosaves located wherever your .emacs.d/ is located.") -;; defining a function that sets more accessible keyboard-bindings to -;; hiding/showing code-blocs -(defun hideshow-on () - (interactive) - (local-set-key (kbd "") 'hs-toggle-hiding) - (local-set-key (kbd "C-c ") 'hs-show-block) - (local-set-key (kbd "C-c ") 'hs-hide-block) - (local-set-key (kbd "C-c ") 'hs-hide-all) - (local-set-key (kbd "C-c ") 'hs-show-all) - (hs-minor-mode t)) +;; Sets all files to be backed up and auto saved in a single directory. +(setq backup-directory-alist `((".*" . ,emacs-autosave-directory)) + auto-save-file-name-transforms `((".*" ,emacs-autosave-directory t))) ;; now we have to tell emacs where to load these functions. Showing ;; and hiding codeblocks could be useful for all c-like programming