Fix paragrapg filling

This commit is contained in:
Tom Willemse 2017-04-02 20:41:58 -07:00
parent 01a6e9852e
commit 82eb99e398

View file

@ -1,7 +1,7 @@
#+TITLE: Tom-Emacs Interface #+TITLE: Tom-Emacs Interface
#+STARTUP: content #+STARTUP: content
This is my personal Emacs configuration. The name was inspired by This is my personal Emacs configuration. The name was inspired by
"Ghost in the Shell 2: Man-Machine Interface and Ryan Rix's "Complete "Ghost in the Shell 2: Man-Machine Interface and Ryan Rix's "Complete
Computing Environment". Computing Environment".
@ -23,8 +23,8 @@ Computing Environment".
** Load path ** Load path
Emacs' load path is where it looks to find Emacs Lisp files when Emacs' load path is where it looks to find Emacs Lisp files when
confronted with a =load= or =require= form. Most of my packages confronted with a =load= or =require= form. Most of my packages are
are managed through the package manager, but not all of them. managed through the package manager, but not all of them.
*** Mode-specific configuration directory *** Mode-specific configuration directory
@ -118,9 +118,9 @@ Computing Environment".
*** Initialize the package manager *** Initialize the package manager
Initialize package.el so that packages can be loaded and used. This Initialize package.el so that packages can be loaded and used.
also needs to be done at both run-time and compile-time so packages This also needs to be done at both run-time and compile-time so
can be installed at compile-time. packages can be installed at compile-time.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(eval-and-compile (package-initialize)) (eval-and-compile (package-initialize))
@ -129,8 +129,8 @@ Computing Environment".
*** Install missing packages *** Install missing packages
Refresh the package contents so packages can be installed from all Refresh the package contents so packages can be installed from all
configured archives. Don't do this at run-time because it slows down configured archives. Don't do this at run-time because it slows
the process too much. Afterwards down the process too much. Afterwards
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(eval-when-compile (eval-when-compile
@ -160,9 +160,9 @@ Computing Environment".
*** Backups *** Backups
I don't like having every directory filled with "filename~" I don't like having every directory filled with "filename~" files.
files. So instead of saving backup files to the same directory, save So instead of saving backup files to the same directory, save them
them to a special one instead. to a special one instead.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq backup-directory-alist `((".*" . ,(oni:data-location "backup-files/")))) (setq backup-directory-alist `((".*" . ,(oni:data-location "backup-files/"))))
@ -176,9 +176,9 @@ Computing Environment".
**** Auto save files **** Auto save files
Usually these files get deleted, but sometimes they don't, and I Usually these files get deleted, but sometimes they don't, and I
don't think they look pretty. Add it to the end of the list because don't think they look pretty. Add it to the end of the list
the default value stores auto-saves for remote files in /tmp, which because the default value stores auto-saves for remote files in
is fine by me. /tmp, which is fine by me.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-to-list 'auto-save-file-name-transforms (add-to-list 'auto-save-file-name-transforms
@ -202,14 +202,14 @@ Computing Environment".
** Whitespace ** Whitespace
Even though whitespace technically isn't seen, it can still be an Even though whitespace technically isn't seen, it can still be an
eyesore and highly annoying, you must always keep it well in eyesore and highly annoying, you must always keep it well in check.
check.
*** Remove trailing whitespace before saving *** Remove trailing whitespace before saving
I hate it when trailing whitespace is left around a file. I've been I hate it when trailing whitespace is left around a file. I've
using this for years, and apart from having some trouble working been using this for years, and apart from having some trouble
with people who don't pay attention to it, it has worked flawlessly. working with people who don't pay attention to it, it has worked
flawlessly.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(require 'destroy-trailing-whitespace) (require 'destroy-trailing-whitespace)
@ -233,8 +233,8 @@ Computing Environment".
**** Don't use tabs for indentation **** Don't use tabs for indentation
Generally I prefer using spaces over tabs. Especially for lisp-like Generally I prefer using spaces over tabs. Especially for
languages. lisp-like languages.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default indent-tabs-mode nil) (setq-default indent-tabs-mode nil)
@ -242,8 +242,8 @@ Computing Environment".
**** Display tabs as 4 columns wide **** Display tabs as 4 columns wide
A tab-width of 8 is too wide for me, and 2 is too narrow. 4 is just A tab-width of 8 is too wide for me, and 2 is too narrow. 4 is
right. just right.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default tab-width 4) (setq-default tab-width 4)
@ -267,8 +267,9 @@ Computing Environment".
*** Inhibit startup screen *** Inhibit startup screen
I've been using Emacs long enough not to need the startup screen I've been using Emacs long enough not to need the startup screen
anymore. I don't see it on my PC where I start Emacs in daemon mode, anymore. I don't see it on my PC where I start Emacs in daemon
but on my laptop I always start it normally, so it gets in the way. mode, but on my laptop I always start it normally, so it gets in
the way.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
@ -328,9 +329,9 @@ Computing Environment".
*** Long lines *** Long lines
By default Emacs wraps long lines around to the next line when they By default Emacs wraps long lines around to the next line when
reach the far end of the window. However I prefer to have them they reach the far end of the window. However I prefer to have
truncated instead. them truncated instead.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default truncate-lines t) (setq-default truncate-lines t)
@ -442,7 +443,8 @@ Computing Environment".
* Bookmarks * Bookmarks
Save bookmarks in my data directory so my =user-emacs-directory= is less cluttered. Save bookmarks in my data directory so my =user-emacs-directory= is
less cluttered.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(eval-when-compile (require 'bookmark)) (eval-when-compile (require 'bookmark))
@ -679,7 +681,8 @@ Computing Environment".
** Auto revert mode ** Auto revert mode
ARev isn't very descriptive, and fairly wide. Use a font-awesome icon instead. ARev isn't very descriptive, and fairly wide. Use a font-awesome
icon instead.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(with-eval-after-load 'autorevert (with-eval-after-load 'autorevert