diff options
-rw-r--r-- | tag-emacs/emacs.d/init.org | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 905b46e..f632f97 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -7,7 +7,7 @@ This is a living document, detailing my Emacs configuration using org-mode * Basics ** Startup -Open Emacs with just a plain window. No graphics or messages, please! +Open Emacs with just a plain window. No graphics or messages, please! #+BEGIN_SRC emacs-lisp (put 'inhibit-startup-echo-area-message 'saved-value (setq inhibit-startup-echo-area-message (user-login-name))) @@ -63,7 +63,7 @@ the buffer to be empty. * Customize I don’t really like using customize for normal configuration. -Instead, I use it for things that get saved automatically. That’s why +Instead, I use it for things that get saved automatically. That’s why I use a different file, which is ignored by the VCS. It also means that it’s not important whether the file exists or not, which is why I pass =:noerror= to =load= @@ -481,7 +481,7 @@ trash for deleting on OS X. ** Encoding -UTF-8 is usually appropriate. Note that =prefer-coding-system= expects +UTF-8 is usually appropriate. Note that =prefer-coding-system= expects only a coding system, not a coding system and line ending combination. #+BEGIN_SRC emacs-lisp @@ -491,14 +491,14 @@ only a coding system, not a coding system and line ending combination. ** Buffer-file management -Ask if I want to create a directory when it doesn’t exist. This is +Ask if I want to create a directory when it doesn’t exist. This is especially nice when starting new projects. #+BEGIN_SRC emacs-lisp (defun my-create-non-existent-directory () (let ((parent-directory (file-name-directory buffer-file-name))) (when (and (not (file-exists-p parent-directory)) - (y-or-n-p (format "Directory `%s' does not exist! Create it?" parent-directory))) + (y-or-n-p (format "Directory `%s' does not exist! Create it?" parent-directory))) (make-directory parent-directory t)))) (add-to-list 'find-file-not-found-functions #'my-create-non-existent-directory) #+END_SRC @@ -538,7 +538,7 @@ with a buffer. (message "File '%s' successfully removed" filename))))) (defun kill-or-delete-this-buffer-dwim (&optional arg) - "Kills current buffer. With prefix arg, delete it." + "Kills current buffer. With prefix arg, delete it." (interactive "P") (if (equal arg '(4)) (delete-current-buffer-file) @@ -566,7 +566,7 @@ open it. Whitespace butler fixes whitespace only for lines that I’m editing. ** shrink-whitespace -DWIM whitespace removal. So I don’t need =M-SPC=, =M-\= and =C-x o= +DWIM whitespace removal. So I don’t need =M-SPC=, =M-\= and =C-x o= for similar things any more. #+BEGIN_SRC emacs-lisp @@ -728,7 +728,7 @@ with spaces. Perfect! ** dtrt-indent-mode -Sometimes people use different indentation settings. [[https://github.com/jscheid/dtrt-indent][dtrt-indent]] +Sometimes people use different indentation settings. [[https://github.com/jscheid/dtrt-indent][dtrt-indent]] guesses the correct settings for me. #+BEGIN_SRC emacs-lisp @@ -935,7 +935,7 @@ Weeks start on Monday for me and I prefer ISO-style dates. Sometimes I want to insert a date or time into a buffer. #+BEGIN_SRC emacs-lisp (defun insert-date (prefix) - "Insert the current date. With prefix-argument, use British format. With + "Insert the current date. With prefix-argument, use British format. With two prefix arguments, write out the day and month name." (interactive "P") (let ((format (cond @@ -1058,7 +1058,7 @@ improves the normal help commands, mostly by making quitting them easier. #+END_SRC ** helm-dash -Emacs’ documentation is great to read from inside Emacs. Helm-dash +Emacs’ documentation is great to read from inside Emacs. Helm-dash helps to make documentation for other languages easier to access #+BEGIN_SRC emacs-lisp @@ -1277,7 +1277,7 @@ replace helm and ido. ** smex -Smex is my favourite way to use =M-x=. Counsel’s =counsel-M-x= +Smex is my favourite way to use =M-x=. Counsel’s =counsel-M-x= function uses it internally, so I’m keeping it around, even though I don’t use it directly. @@ -1676,7 +1676,7 @@ let bindings. *** Emacs Lisp -Customise the modeline-display of =emacs-lisp-mode=. Then make sure +Customise the modeline-display of =emacs-lisp-mode=. Then make sure it runs the common lisp hooks. #+BEGIN_SRC emacs-lisp @@ -1684,7 +1684,7 @@ it runs the common lisp hooks. (add-hook 'emacs-lisp-mode-hook #'eldoc-mode) #+END_SRC -Go-to function for elisp. Except it works through the entire Emacs ecosystem. +Go-to function for elisp. Except it works through the entire Emacs ecosystem. #+BEGIN_SRC emacs-lisp (use-package elisp-slime-nav @@ -2005,7 +2005,7 @@ nice, when I remember to use it. #+BEGIN_SRC emacs-lisp (use-package eshell - :bind ("C-c s" . eshell) + :bind ("C-c s" . eshell) :config (progn (setq eshell-directory-name "~/.emacs.d/eshell") (add-hook 'eshell-load-hook (lambda () @@ -2296,7 +2296,7 @@ the buffer for me. #+END_SRC * Tangling -Taken from [[https://github.com/larstvei/dot-emacs/blob/master/init.org][larstvei/dot-emacs]]. I changed it so that it would work with +Taken from [[https://github.com/larstvei/dot-emacs/blob/master/init.org][larstvei/dot-emacs]]. I changed it so that it would work with my current dotfiles repository structure and work asynchronously, thanks to [[https://github.com/jwiegley/emacs-async][jwiegley/emacs-async]]. |