Remove hideshow, cleaned up auto-save.
This commit is contained in:
		
							parent
							
								
									03b6db1924
								
							
						
					
					
						commit
						ae69599a0d
					
				@ -70,22 +70,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
;; adds all autosave-files (i.e #test.txt#, test.txt~) in one
 | 
					;; adds all autosave-files (i.e #test.txt#, test.txt~) in one
 | 
				
			||||||
;; directory, avoid clutter in filesystem.
 | 
					;; directory, avoid clutter in filesystem.
 | 
				
			||||||
(defvar emacs-autosave-directory (concat user-emacs-directory "autosaves/"))
 | 
					(defvar emacs-autosave-directory
 | 
				
			||||||
(setq backup-directory-alist
 | 
					  (concat user-emacs-directory "autosaves/")
 | 
				
			||||||
      `((".*" . ,emacs-autosave-directory))
 | 
					  "This variable dictates where to put auto saves. It is set to a directory
 | 
				
			||||||
      auto-save-file-name-transforms
 | 
					called autosaves located wherever your .emacs.d/ is located.")
 | 
				
			||||||
      `((".*" ,emacs-autosave-directory t)))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; defining a function that sets more accessible keyboard-bindings to
 | 
					;; Sets all files to be backed up and auto saved in a single directory.
 | 
				
			||||||
;; hiding/showing code-blocs
 | 
					(setq backup-directory-alist `((".*" . ,emacs-autosave-directory))
 | 
				
			||||||
(defun hideshow-on ()
 | 
					      auto-save-file-name-transforms `((".*" ,emacs-autosave-directory t)))
 | 
				
			||||||
  (interactive)
 | 
					 | 
				
			||||||
  (local-set-key (kbd "<backtab>")   'hs-toggle-hiding)
 | 
					 | 
				
			||||||
  (local-set-key (kbd "C-c <right>") 'hs-show-block)
 | 
					 | 
				
			||||||
  (local-set-key (kbd "C-c <left>")  'hs-hide-block)
 | 
					 | 
				
			||||||
  (local-set-key (kbd "C-c <up>")    'hs-hide-all)
 | 
					 | 
				
			||||||
  (local-set-key (kbd "C-c <down>")  'hs-show-all)
 | 
					 | 
				
			||||||
  (hs-minor-mode t))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; now we have to tell emacs where to load these functions. Showing
 | 
					;; now we have to tell emacs where to load these functions. Showing
 | 
				
			||||||
;; and hiding codeblocks could be useful for all c-like programming
 | 
					;; and hiding codeblocks could be useful for all c-like programming
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user