From: W. Trevor King Date: Sun, 6 Jan 2013 12:35:09 +0000 (-0500) Subject: .emacs: Remove `.el` suffixes from load() calls. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c54c005ebf0287782f41c546ea8db88c39466144;p=dotfiles-public.git .emacs: Remove `.el` suffixes from load() calls. Emacs expects the given name to not have an extension, and adds a range of possible extensions to find the file [1]: Function: load filename &optional missing-ok nomessage nosuffix must-suffix ... To find the file, load first looks for a file named filename.elc, that is, for a file whose name is filename with the extension ‘.elc’ appended. If such a file exists, it is loaded. If there is no file by that name, then load looks for a file named filename.el. If that file exists, it is loaded. Finally, if neither of those names is found, load looks for a file named filename with nothing appended, and loads it if it exists. [1]: http://www.gnu.org/software/emacs/manual/html_node/elisp/How-Programs-Do-Loading.html#index-load-826 --- diff --git a/local-patch.examples/003-no-emacs-cython.patch b/local-patch.examples/003-no-emacs-cython.patch index 40baa5a..1b1960a 100644 --- a/local-patch.examples/003-no-emacs-cython.patch +++ b/local-patch.examples/003-no-emacs-cython.patch @@ -1,8 +1,8 @@ --- a/.emacs +++ b/.emacs @@ -20,8 +20,6 @@ - (load "wtk_no-vc.el") - (load "wtk_ansi-color.el") + (load "wtk_no-vc") + (load "wtk_ansi-color") -(require 'cython-mode) - diff --git a/local-patch.examples/005-no-emacs-epa.patch b/local-patch.examples/005-no-emacs-epa.patch index 358f7f3..d27b59e 100644 --- a/local-patch.examples/005-no-emacs-epa.patch +++ b/local-patch.examples/005-no-emacs-epa.patch @@ -1,10 +1,10 @@ --- a/.emacs +++ b/.emacs @@ -15,7 +15,6 @@ - (load "wtk_layout.el") - (load "wtk_linux.el") - (load "wtk_aspell.el") --(load "wtk_epa.el") - (load "wtk_org.el") - (load "wtk_no-vc.el") - (load "wtk_ansi-color.el") + (load "wtk_layout") + (load "wtk_linux") + (load "wtk_aspell") +-(load "wtk_epa") + (load "wtk_org") + (load "wtk_no-vc") + (load "wtk_ansi-color") diff --git a/src/.emacs b/src/.emacs index b686e62..2f32113 100644 --- a/src/.emacs +++ b/src/.emacs @@ -9,16 +9,16 @@ (add-to-list 'load-path "~/.emacs.d/site-lisp/") ; Load useful customizations -(load "wtk_common.el") -(load "wtk_centralized_backups.el") -(load "wtk_utf-8.el") -(load "wtk_layout.el") -(load "wtk_linux.el") -(load "wtk_aspell.el") -(load "wtk_epa.el") -(load "wtk_org.el") -(load "wtk_no-vc.el") -(load "wtk_ansi-color.el") +(load "wtk_common") +(load "wtk_centralized_backups") +(load "wtk_utf-8") +(load "wtk_layout") +(load "wtk_linux") +(load "wtk_aspell") +(load "wtk_epa") +(load "wtk_org") +(load "wtk_no-vc") +(load "wtk_ansi-color") (require 'cython-mode) @@ -27,5 +27,5 @@ ; Play GNU Go in an emacs buffer ;(require 'gnugo) -; Load querty.el, for switching keyboard mappings. -;(load "querty.el") +; Load querty, for switching keyboard mappings. +;(load "querty") diff --git a/src/.emacs-admin b/src/.emacs-admin index 0ce941c..c959380 100644 --- a/src/.emacs-admin +++ b/src/.emacs-admin @@ -9,5 +9,5 @@ (add-to-list 'load-path "~/.emacs.d/site-lisp/") ; Load useful customizations -(load "wtk_common.el") -(load "wtk_centralized_backups.el") +(load "wtk_common") +(load "wtk_centralized_backups")