Improve documentation
This commit is contained in:
parent
74338b851b
commit
2d4f6da11c
8
init.el
8
init.el
@ -34,7 +34,7 @@
|
||||
|
||||
;; Define some functions for deferring and restoring Emacs' garbage collection facilities.
|
||||
(defun defer-garbage-collection ()
|
||||
"Set the garbage collection threshold to the highest possible for collection avoidance."
|
||||
"Defer garbage collection by maximizing the collection threshold."
|
||||
(setq gc-cons-threshold most-positive-fixnum
|
||||
gc-cons-percentage 0.6))
|
||||
(defun restore-garbage-collection ()
|
||||
@ -143,7 +143,7 @@
|
||||
(setq file-name-handler-alist nil)
|
||||
(add-hook 'emacs-startup-hook (lambda () (setq file-name-handler-alist temp--file-name-handler-alist)))
|
||||
|
||||
;; Add a hook to trailing whitespaces before saving a file.
|
||||
;; Add a hook to delete any trailing whitespace before saving a file.
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
|
||||
;;====================
|
||||
@ -276,7 +276,7 @@
|
||||
|
||||
;; Custom Bindings:
|
||||
;; [ F6 ] -> Toggle line-wrapping
|
||||
;; [ F7 ] -> Toggle linum-mode/display-line-numbers-mode
|
||||
;; [ F7 ] -> Toggle display-line-numbers-mode
|
||||
;; [ F10 ] -> (Overwritten) Open the menubar in a minibuffer
|
||||
;; [ C-z ] -> (Overwritten) Undo (and don't suspend, thanks)
|
||||
;; [ C-c d ] -> Delete pair
|
||||
@ -316,7 +316,7 @@
|
||||
(lisp-interaction-mode))))
|
||||
|
||||
(defun open-default-shell ()
|
||||
"Opens the default shell in an `ansi-term' buffer, switching to existing buffer if present."
|
||||
"Open the default shell in `ansi-term', switching to an open session if present."
|
||||
(interactive)
|
||||
(if (get-buffer "*terminal*")
|
||||
(switch-to-buffer "*terminal*")
|
||||
|
Loading…
Reference in New Issue
Block a user