From 82eb99e3982c56f3404a8e24a3dd6dabb42823d3 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 2 Apr 2017 20:41:58 -0700 Subject: [PATCH] Fix paragrapg filling --- emacs/.emacs.d/init.org | 63 +++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 302b0be..538588e 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1,7 +1,7 @@ #+TITLE: Tom-Emacs Interface #+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 Computing Environment". @@ -23,8 +23,8 @@ Computing Environment". ** Load path Emacs' load path is where it looks to find Emacs Lisp files when - confronted with a =load= or =require= form. Most of my packages - are managed through the package manager, but not all of them. + confronted with a =load= or =require= form. Most of my packages are + managed through the package manager, but not all of them. *** Mode-specific configuration directory @@ -118,9 +118,9 @@ Computing Environment". *** Initialize the package manager - Initialize package.el so that packages can be loaded and used. This - also needs to be done at both run-time and compile-time so packages - can be installed at compile-time. + Initialize package.el so that packages can be loaded and used. + This also needs to be done at both run-time and compile-time so + packages can be installed at compile-time. #+BEGIN_SRC emacs-lisp (eval-and-compile (package-initialize)) @@ -129,8 +129,8 @@ Computing Environment". *** Install missing packages Refresh the package contents so packages can be installed from all - configured archives. Don't do this at run-time because it slows down - the process too much. Afterwards + configured archives. Don't do this at run-time because it slows + down the process too much. Afterwards #+BEGIN_SRC emacs-lisp (eval-when-compile @@ -160,9 +160,9 @@ Computing Environment". *** Backups - I don't like having every directory filled with "filename~" - files. So instead of saving backup files to the same directory, save - them to a special one instead. + I don't like having every directory filled with "filename~" files. + So instead of saving backup files to the same directory, save them + to a special one instead. #+BEGIN_SRC emacs-lisp (setq backup-directory-alist `((".*" . ,(oni:data-location "backup-files/")))) @@ -176,9 +176,9 @@ Computing Environment". **** Auto save files 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 - the default value stores auto-saves for remote files in /tmp, which - is fine by me. + don't think they look pretty. Add it to the end of the list + because the default value stores auto-saves for remote files in + /tmp, which is fine by me. #+BEGIN_SRC emacs-lisp (add-to-list 'auto-save-file-name-transforms @@ -202,14 +202,14 @@ Computing Environment". ** Whitespace Even though whitespace technically isn't seen, it can still be an - eyesore and highly annoying, you must always keep it well in - check. + eyesore and highly annoying, you must always keep it well in check. *** Remove trailing whitespace before saving - I hate it when trailing whitespace is left around a file. I've been - using this for years, and apart from having some trouble working - with people who don't pay attention to it, it has worked flawlessly. + I hate it when trailing whitespace is left around a file. I've + been using this for years, and apart from having some trouble + working with people who don't pay attention to it, it has worked + flawlessly. #+BEGIN_SRC emacs-lisp (require 'destroy-trailing-whitespace) @@ -233,8 +233,8 @@ Computing Environment". **** Don't use tabs for indentation - Generally I prefer using spaces over tabs. Especially for lisp-like - languages. + Generally I prefer using spaces over tabs. Especially for + lisp-like languages. #+BEGIN_SRC emacs-lisp (setq-default indent-tabs-mode nil) @@ -242,8 +242,8 @@ Computing Environment". **** Display tabs as 4 columns wide - A tab-width of 8 is too wide for me, and 2 is too narrow. 4 is just - right. + A tab-width of 8 is too wide for me, and 2 is too narrow. 4 is + just right. #+BEGIN_SRC emacs-lisp (setq-default tab-width 4) @@ -267,8 +267,9 @@ Computing Environment". *** Inhibit 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, - but on my laptop I always start it normally, so it gets in the way. + anymore. I don't see it on my PC where I start Emacs in daemon + mode, but on my laptop I always start it normally, so it gets in + the way. #+BEGIN_SRC emacs-lisp (setq inhibit-startup-screen t) @@ -328,9 +329,9 @@ Computing Environment". *** Long lines - By default Emacs wraps long lines around to the next line when they - reach the far end of the window. However I prefer to have them - truncated instead. + By default Emacs wraps long lines around to the next line when + they reach the far end of the window. However I prefer to have + them truncated instead. #+BEGIN_SRC emacs-lisp (setq-default truncate-lines t) @@ -442,7 +443,8 @@ Computing Environment". * 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 (eval-when-compile (require 'bookmark)) @@ -679,7 +681,8 @@ Computing Environment". ** 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 (with-eval-after-load 'autorevert