Bring in a few more .emacs tweaks: aspell, utf-8, and no-vc.
authorW. Trevor King <wking@drexel.edu>
Tue, 29 Nov 2011 12:01:06 +0000 (07:01 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 29 Nov 2011 12:01:06 +0000 (07:01 -0500)
src/.emacs
src/.emacs.d/load/wtk_aspell.el [new file with mode: 0644]
src/.emacs.d/load/wtk_no-vc.el [new file with mode: 0644]
src/.emacs.d/load/wtk_utf-8.el [new file with mode: 0644]

index e93787469b7c519f147ff4c085854780fb86d8b0..aeb13e608c9e1a11a92bec28a1534337c3a6f2e1 100644 (file)
 ; Load useful customizations
 (load "wtk_common.el")
 (load "wtk_centralized_backups.el")
+(load "wtk_utf-8.el")
 (load "wtk_layout.el")
+(load "wtk_aspell.el")
 (load "wtk_epa.el")
 (load "wtk_org.el")
+(load "wtk_no-vc.el")
+
+(require 'cython-mode)
+
+; Play GNU Go in an emacs buffer
+;(require 'gnugo)
 
 ; Load querty.el, for switching keyboard mappings.
 ;(load "querty.el")
diff --git a/src/.emacs.d/load/wtk_aspell.el b/src/.emacs.d/load/wtk_aspell.el
new file mode 100644 (file)
index 0000000..f20df62
--- /dev/null
@@ -0,0 +1,11 @@
+;;; Set up spell-checking with aspell
+;; http://aspell.net/man-html/Using-Aspell-with-other-Applications.html
+;; http://www.delorie.com/gnu/docs/emacs/emacs_109.html
+(setq-default ispell-program-name "aspell")
+(global-set-key "\C-xs" 'ispell)
+;; http://newsgroups.derkeiler.com/Archive/Comp/comp.emacs/2006-03/msg00005.html
+;; http://blog.infion.de/archives/2007/07/09/GNU-Emacs,-aspell-and-the-problem-with-encodings/
+(eval-after-load 'ispell
+  '(when ispell-aspell-supports-utf8
+     (setq ispell-extra-args
+           (append ispell-extra-args '("--encoding" "none")))))
diff --git a/src/.emacs.d/load/wtk_no-vc.el b/src/.emacs.d/load/wtk_no-vc.el
new file mode 100644 (file)
index 0000000..c3c64bf
--- /dev/null
@@ -0,0 +1,3 @@
+; Turn off VC
+;   http://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html
+(setq vc-handled-backends 'nil)
diff --git a/src/.emacs.d/load/wtk_utf-8.el b/src/.emacs.d/load/wtk_utf-8.el
new file mode 100644 (file)
index 0000000..4cb7e77
--- /dev/null
@@ -0,0 +1,3 @@
+;;; Set up keyboard encoding for utf-8 (Emacs 21.4.1 trouble parsing LANG?)
+;; http://www.gnu.org/software/emacs/manual/html_node/emacs/Terminal-Coding.html#Terminal-Coding
+(set-keyboard-coding-system 'utf-8)