Skip to content
This repository
Newer
Older
100644 75 lines (60 sloc) 2.777 kb
4be257b4 »
2010-12-09 Header of starter-kit.el.
1 ;;; starter-kit.el --- Saner defaults and goodies.
5fcb34d0 »
2008-11-18 initial commit
2 ;;
9a66ad56 »
2011-08-27 Move starter-kit-eshell into its own module.
3 ;; Copyright (c) 2008-2011 Phil Hagelberg and contributors
5fcb34d0 »
2008-11-18 initial commit
4 ;;
4be257b4 »
2010-12-09 Header of starter-kit.el.
5 ;; Author: Phil Hagelberg <technomancy@gmail.com>
6 ;; URL: http://www.emacswiki.org/cgi-bin/wiki/StarterKit
e0b9de2f »
2011-09-13 Version 2.0.2 of the base starter-kit.
7 ;; Version: 2.0.2
4be257b4 »
2010-12-09 Header of starter-kit.el.
8 ;; Keywords: convenience
9
10 ;; This file is not part of GNU Emacs.
11
12 ;;; Commentary:
13
5fcb34d0 »
2008-11-18 initial commit
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
4be257b4 »
2010-12-09 Header of starter-kit.el.
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
f4b5df23 »
2010-12-10 Need to move everything in starter-kit.el into autoloaded progn.
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)))
3e66ebea » Daniel Nelson
2009-08-31 Remove mouse interactive elements at very beginning of initialization…
46
9a66ad56 »
2011-08-27 Move starter-kit-eshell into its own module.
47 (mapc 'require '(uniquify starter-kit-defuns starter-kit-misc))
5fcb34d0 »
2008-11-18 initial commit
48
f4b5df23 »
2010-12-10 Need to move everything in starter-kit.el into autoloaded progn.
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))
5fcb34d0 »
2008-11-18 initial commit
53
b4882f6a » kylpo
2011-09-30 smex-save-file added BEFORE smex-initialize for smex command persiste…
54 (setq smex-save-file (concat user-emacs-directory ".smex-items"))
1264e62b »
2011-09-13 Depend upon smex and ffip.
55 (smex-initialize)
56 (global-set-key (kbd "M-x") 'smex)
57
b1fd4fc5 » DarwinAwardWinner
2011-11-14 Load system and user config files after init. Should help with #107.
58 (defun esk-eval-after-init (form)
72fdb39b »
2012-03-16 Bidirectional slurp.
59 "Add `(lambda () FORM)' to `after-init-hook'.
b1fd4fc5 » DarwinAwardWinner
2011-11-14 Load system and user config files after init. Should help with #107.
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
72fdb39b »
2012-03-16 Bidirectional slurp.
67 (esk-eval-after-init
68 '(progn
b1fd4fc5 » DarwinAwardWinner
2011-11-14 Load system and user config files after init. Should help with #107.
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)
a4d23936 »
2012-05-18 Fix #135.
72 (mapc 'load (directory-files esk-user-dir t "^[^#].*el$"))))))
8fb846f0 »
2009-01-07 Add user-specific-dir to loadpath and load its contents. Thanks Seth!
73
df65c4ba »
2010-12-09 Trim down loads, use esk- prefix in starter-kit.el.
74 (provide 'starter-kit)
21f89939 »
2010-07-22 Begin work on v2; starter-kit inside package.el.
75 ;;; starter-kit.el ends here
Something went wrong with that request. Please try again.