refactoring

This commit is contained in:
Jesús 2019-05-15 20:27:44 -05:00
parent d6c8d5b36c
commit 9a96d71937
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

17
init.el
View File

@ -53,15 +53,6 @@
(setq gc-cons-percentage 0.5) (setq gc-cons-percentage 0.5)
(run-with-idle-timer 5 t #'garbage-collect)) (run-with-idle-timer 5 t #'garbage-collect))
;;; 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 ;;; Features
;;;------------------------------ ;;;------------------------------
@ -120,10 +111,18 @@
(require 'init-web-mode) (require 'init-web-mode)
(require 'init-dokuwiki)) (require 'init-dokuwiki))
;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;;; Loads custom file ;;; Loads custom file
(when (file-exists-p custom-file) (when (file-exists-p custom-file)
(load custom-file)) (load custom-file))
;;; Settings
(setq settings-file (expand-file-name "settings.el" user-emacs-directory))
;;; Loads settings file
(when (file-exists-p custom-file)
(load settings-file))
(setq gc-cons-threshold best-gc-cons-threshold) (setq gc-cons-threshold best-gc-cons-threshold)
(when window-system (when window-system