Clean up init files
This commit is contained in:
parent
f63d831575
commit
accd943e87
2 changed files with 90 additions and 83 deletions
|
@ -1,7 +1,8 @@
|
|||
;;; init-load-path.el
|
||||
|
||||
(fset '! 'eval-when-compile)
|
||||
(setq gc-cons-threshold 84857600)
|
||||
|
||||
(eval-and-compile
|
||||
(defconst narf-emacs-dir user-emacs-directory)
|
||||
(defconst narf-core-dir (concat narf-emacs-dir "core/"))
|
||||
(defconst narf-modules-dir (concat narf-emacs-dir "modules/"))
|
||||
|
@ -11,9 +12,11 @@
|
|||
(defconst narf-temp-dir (concat narf-private-dir "cache/" (system-name) "/"))
|
||||
(defconst narf-script-dir (concat narf-emacs-dir "scripts/"))
|
||||
(defconst narf-snippet-dirs (list (concat narf-private-dir "snippets/")
|
||||
(concat narf-private-dir "templates/")))
|
||||
(concat narf-private-dir "templates/"))))
|
||||
|
||||
(! (defun --subdirs (path)
|
||||
(eval-when-compile
|
||||
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/cask")
|
||||
(defun --subdirs (path)
|
||||
(let ((result '())
|
||||
(paths (ignore-errors (directory-files path t "^[^.]" t))))
|
||||
(dolist (file paths)
|
||||
|
@ -23,10 +26,13 @@
|
|||
|
||||
;; Scan various folders to populate the load-dirs
|
||||
(setq custom-theme-load-path
|
||||
(! (append (--subdirs (concat narf-private-dir "themes/"))
|
||||
(eval-when-compile
|
||||
(append (--subdirs (concat narf-private-dir "themes/"))
|
||||
custom-theme-load-path)))
|
||||
|
||||
(setq load-path
|
||||
(! (require 'cask)
|
||||
(eval-when-compile
|
||||
(require 'cask)
|
||||
(cask-initialize)
|
||||
(setq load-path (append (list narf-core-dir narf-contrib-dir narf-modules-dir narf-private-dir)
|
||||
(list (concat narf-core-dir "lib"))
|
||||
|
@ -38,4 +44,7 @@
|
|||
(defconst IS-LINUX (eq system-type 'gnu/linux))
|
||||
(defconst IS-WINDOWS (eq system-type 'windows-nt))
|
||||
|
||||
(when (file-exists-p "~/.emacs.local.el")
|
||||
(load "~/.emacs.local.el"))
|
||||
|
||||
;;; init-load-path.el ends here
|
||||
|
|
24
init.el
24
init.el
|
@ -40,20 +40,17 @@
|
|||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(defconst narf-debug-mode nil)
|
||||
(setq gc-cons-threshold 84857600) ; avoid garbage collection
|
||||
(setq file-name-handler-alist nil) ; premature optimization weee!
|
||||
(defconst narf-theme 'narf-dark)
|
||||
(defconst narf-default-font (font-spec :family "DejaVu Sans Mono" :size 12))
|
||||
(defconst narf-big-font (font-spec :family "Ubuntu Mono" :size 18))
|
||||
|
||||
(scroll-bar-mode -1) ; no scrollbar
|
||||
(tool-bar-mode -1) ; no toolbar
|
||||
(menu-bar-mode -1) ; no menubar
|
||||
|
||||
(defconst narf-default-font (font-spec :family "terminus (ttf)" :size 12 :antialias nil))
|
||||
(defconst narf-big-font (font-spec :family "Ubuntu Mono" :size 18 :antialias t))
|
||||
;; prematurely optimize for faster startup
|
||||
(let (file-name-handler-alist)
|
||||
(load (concat user-emacs-directory "init-load-path.el"))
|
||||
(load-theme (if window-system 'narf-dark 'wombat) t)
|
||||
|
||||
(set-frame-parameter nil 'fullscreen 'fullboth)
|
||||
(load-theme narf-theme t)
|
||||
|
||||
(mapc 'require
|
||||
`(core ; core/core.el
|
||||
|
@ -77,6 +74,7 @@
|
|||
module-cc ; c/c++/obj-c madness
|
||||
;; module-crystal ; ruby at the speed of c
|
||||
module-csharp ; unity, .NET, and mono shenanigans
|
||||
module-collab ; wonewy, I'm so wonewy~
|
||||
module-data ; dbs 'n data formats
|
||||
module-elisp ; drowning in parentheses
|
||||
module-eshell ; eshell (on windows)
|
||||
|
@ -87,20 +85,20 @@
|
|||
module-lua ; one-based indices? one-based indices.
|
||||
module-markdown ; markdown
|
||||
module-org ; for fearless [organized] leader
|
||||
module-plantuml ; to help show how right I am
|
||||
module-php ; making php less painful to work with
|
||||
module-python ; beautiful is better than ugly
|
||||
module-regex ; /^[^\s](meaning)[^\n]*/
|
||||
module-ruby ; <3
|
||||
module-rust ; Fe2O3
|
||||
module-sh ; she sells Z-shells by the C shore
|
||||
module-sh ; she sells Z-shells by the C XOR
|
||||
module-swift ; yay, emoji variables!
|
||||
module-vim ; the confessional
|
||||
module-vim ; my mistress
|
||||
module-web ; for the 2.0'er
|
||||
|
||||
my-bindings
|
||||
my-commands
|
||||
))
|
||||
|
||||
(narf-init)
|
||||
(narf-init))
|
||||
|
||||
;;; I think so Brain...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue