The diminish mode is activated, which helps us to keep the modeline clean. As we see, in the modeline the modes that are activated are shown, and every time we have more activated minor-modes, which add small functionalities to Emacs. In this case, there are many modes, that if they do not appear, nothing happens. So we hide some, like undo-tree that will always be activated.
66 lines
1.6 KiB
EmacsLisp
66 lines
1.6 KiB
EmacsLisp
;; Emacs!!!
|
|
|
|
(package-initialize)
|
|
|
|
(when (version<= emacs-version "24")
|
|
(error "This is made form Emacs >=24"))
|
|
|
|
(defconst emacs-start-time (current-time))
|
|
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp/" user-emacs-directory))
|
|
|
|
;;; Raise garbage collection threshold after init
|
|
(add-hook 'after-init-hook
|
|
(lambda () (setq gc-cons-threshold local/gc-cons-threshold)))
|
|
|
|
;;; Custom variables
|
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
|
;;; Custom settings
|
|
(setq settings-file (expand-file-name "settings.el" user-emacs-directory))
|
|
|
|
;;; Loads settings file
|
|
(when (file-exists-p custom-file)
|
|
(load settings-file))
|
|
;;;------------------------------
|
|
;;; Features
|
|
;;;------------------------------
|
|
(require 'init-security)
|
|
(require 'init-elpa)
|
|
;; theme
|
|
(require 'init-theme)
|
|
;; Utils
|
|
(require 'init-utils)
|
|
;; GUI
|
|
(require 'init-nlinum)
|
|
(require 'init-gui)
|
|
(require 'init-editing-utils)
|
|
(require 'init-diminish)
|
|
(require 'init-modeline)
|
|
(require 'init-indent-guides)
|
|
;; Tools
|
|
(require 'init-flycheck)
|
|
(require 'init-whitespace)
|
|
;;(require 'init-editorconfig)
|
|
;; Languages
|
|
(require 'init-ccc)
|
|
(require 'init-markdown)
|
|
(require 'init-python)
|
|
(require 'init-pkgbuild)
|
|
(require 'init-php)
|
|
(require 'init-less)
|
|
(require 'init-sass)
|
|
(require 'init-scss)
|
|
(require 'init-yaml)
|
|
;; Plus
|
|
(require 'init-rainbow)
|
|
|
|
;;; Loads custom file
|
|
(when (file-exists-p custom-file)
|
|
(load custom-file))
|
|
|
|
(when window-system
|
|
(let ((elapsed (float-time (time-subtract (current-time)
|
|
emacs-start-time))))
|
|
(message "[STARTUP] Loading %s ... done (%.3fs)" load-file-name elapsed)))
|
|
|
|
(provide 'init)
|