forked from laynor/emacs-conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
executable file
·49 lines (41 loc) · 1.79 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(require 'cl)
(setq inhibit-x-resources t)
;; (setq *active-profile* (or (getenv "EMACS_PROFILE")
;; "default-profile"))
;; (defadvice package-activate (before antani (package min-version) activate)
;; (when (eq package 'mediawiki)
;; (debug))
;; (message "PACKAGE %s" package))
(setq inhibit-x-resources t)
(defun local-repo (package-name)
(concat user-emacs-directory "site-lisp/" package-name "/"))
(setq-default evil-intercept-esc 'always)
(add-to-list 'load-path (concat user-emacs-directory "site-lisp/"))
(add-to-list 'custom-theme-load-path (concat user-emacs-directory "themes"))
;; (setq custom-file (concat user-emacs-directory *active-profile* ".el"))
;;(load *active-profile*)
;;(setq package-enable-at-startup nil)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'load-path (concat user-emacs-directory "smotitah"))
(setq sm-debug t)
(require 'smotitah)
;; (add-hook 'kill-emacs-hook 'sm-recompile-all)
(sm-initialize)
;(require 'server)
;;; (eval-after-load "init"
;(unless (server-running-p)
;(message "mufu"))
;; (server-start))
(add-hook 'after-init-hook (lambda ()
(require 'f)
(require 'dollaro)
(setq initial-scratch-message
($:fill-template (f-read-text
(concat user-emacs-directory
"scratch-template.$"))
`((init-time . ,(emacs-init-time))
(emacs-profile . ,sm-profile))))
(message "Startup time: %s" (emacs-init-time))))
(setq gc-cons-threshold 20000000)
(defalias 'smufu 'save-buffers-kill-emacs)