Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 76 lines (60 sloc) 2.777 kB
4be257b @technomancy Header of starter-kit.el.
authored
1 ;;; starter-kit.el --- Saner defaults and goodies.
5fcb34d @technomancy initial commit
authored
2 ;;
9a66ad5 @technomancy Move starter-kit-eshell into its own module.
authored
3 ;; Copyright (c) 2008-2011 Phil Hagelberg and contributors
5fcb34d @technomancy initial commit
authored
4 ;;
4be257b @technomancy Header of starter-kit.el.
authored
5 ;; Author: Phil Hagelberg <technomancy@gmail.com>
6 ;; URL: http://www.emacswiki.org/cgi-bin/wiki/StarterKit
e0b9de2 @technomancy Version 2.0.2 of the base starter-kit.
authored
7 ;; Version: 2.0.2
4be257b @technomancy Header of starter-kit.el.
authored
8 ;; Keywords: convenience
9
10 ;; This file is not part of GNU Emacs.
11
12 ;;; Commentary:
13
5fcb34d @technomancy initial commit
authored
14 ;; "Emacs outshines all other editing software in approximately the
15 ;; same way that the noonday sun does the stars. It is not just bigger
16 ;; and brighter; it simply makes everything else vanish."
17 ;; -Neal Stephenson, "In the Beginning was the Command Line"
18
4be257b @technomancy Header of starter-kit.el.
authored
19 ;; This file just brings together other pieces of the starter kit plus
20 ;; user- and host-specific configs.
21
22 ;;; License:
23
24 ;; This program is free software; you can redistribute it and/or
25 ;; modify it under the terms of the GNU General Public License
26 ;; as published by the Free Software Foundation; either version 3
27 ;; of the License, or (at your option) any later version.
28 ;;
29 ;; This program is distributed in the hope that it will be useful,
30 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;; GNU General Public License for more details.
33 ;;
34 ;; You should have received a copy of the GNU General Public License
35 ;; along with GNU Emacs; see the file COPYING. If not, write to the
36 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
37 ;; Boston, MA 02110-1301, USA.
38
39 ;;; Code:
40
f4b5df2 @technomancy Need to move everything in starter-kit.el into autoloaded progn.
authored
41 ;;;###autoload
42 (progn
43 ;; Turn off mouse interface early in startup to avoid momentary display
44 (dolist (mode '(menu-bar-mode tool-bar-mode scroll-bar-mode))
45 (when (fboundp mode) (funcall mode -1)))
3e66ebe @Bluejade Remove mouse interactive elements at very beginning of initialization…
Bluejade authored
46
9a66ad5 @technomancy Move starter-kit-eshell into its own module.
authored
47 (mapc 'require '(uniquify starter-kit-defuns starter-kit-misc))
5fcb34d @technomancy initial commit
authored
48
f4b5df2 @technomancy Need to move everything in starter-kit.el into autoloaded progn.
authored
49 ;; You can keep system- or user-specific customizations here
50 (setq esk-system-config (concat user-emacs-directory system-name ".el")
51 esk-user-config (concat user-emacs-directory user-login-name ".el")
52 esk-user-dir (concat user-emacs-directory user-login-name))
5fcb34d @technomancy initial commit
authored
53
b4882f6 @kylpo smex-save-file added BEFORE smex-initialize for smex command persiste…
kylpo authored
54 (setq smex-save-file (concat user-emacs-directory ".smex-items"))
1264e62 @technomancy Depend upon smex and ffip.
authored
55 (smex-initialize)
56 (global-set-key (kbd "M-x") 'smex)
57
b1fd4fc @DarwinAwardWinner Load system and user config files after init. Should help with #107.
DarwinAwardWinner authored
58 (defun esk-eval-after-init (form)
72fdb39 @technomancy Bidirectional slurp.
authored
59 "Add `(lambda () FORM)' to `after-init-hook'.
b1fd4fc @DarwinAwardWinner Load system and user config files after init. Should help with #107.
DarwinAwardWinner authored
60
61 If Emacs has already finished initialization, also eval FORM immediately."
62 (let ((func (list 'lambda nil form)))
63 (add-hook 'after-init-hook func)
64 (when after-init-time
65 (eval form))))
66
72fdb39 @technomancy Bidirectional slurp.
authored
67 (esk-eval-after-init
68 '(progn
b1fd4fc @DarwinAwardWinner Load system and user config files after init. Should help with #107.
DarwinAwardWinner authored
69 (when (file-exists-p esk-system-config) (load esk-system-config))
70 (when (file-exists-p esk-user-config) (load esk-user-config))
71 (when (file-exists-p esk-user-dir)
a4d2393 @technomancy Fix #135.
authored
72 (mapc 'load (directory-files esk-user-dir t "^[^#].*el$"))))))
8fb846f @technomancy Add user-specific-dir to loadpath and load its contents. Thanks Seth!
authored
73
df65c4b @technomancy Trim down loads, use esk- prefix in starter-kit.el.
authored
74 (provide 'starter-kit)
21f8993 @technomancy Begin work on v2; starter-kit inside package.el.
authored
75 ;;; starter-kit.el ends here
Something went wrong with that request. Please try again.