From: W. Trevor King Date: Tue, 29 Nov 2011 12:01:06 +0000 (-0500) Subject: Bring in a few more .emacs tweaks: aspell, utf-8, and no-vc. X-Git-Tag: v0.3~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13bdb879075fb973cc45b161916b2379aeed9994;p=dotfiles-framework.git Bring in a few more .emacs tweaks: aspell, utf-8, and no-vc. --- diff --git a/src/.emacs b/src/.emacs index e937874..aeb13e6 100644 --- a/src/.emacs +++ b/src/.emacs @@ -11,9 +11,17 @@ ; 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 index 0000000..f20df62 --- /dev/null +++ b/src/.emacs.d/load/wtk_aspell.el @@ -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 index 0000000..c3c64bf --- /dev/null +++ b/src/.emacs.d/load/wtk_no-vc.el @@ -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 index 0000000..4cb7e77 --- /dev/null +++ b/src/.emacs.d/load/wtk_utf-8.el @@ -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)