diff options
-rw-r--r-- | emacs/init.el | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/emacs/init.el b/emacs/init.el index b5a8458..a3a16ff 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1,4 +1,9 @@ +;;; init.el -- initialize my emacs configuration +;;; Commentary: + +;;; Code: ;; Initialize the package system first of all. +(require 'gnutls) (require 'package) ;; see https://github.com/melpa/melpa/issues/7238 @@ -9,28 +14,29 @@ ("gnu" . "https://elpa.gnu.org/packages/"))) ;; and now we load custom configurations -(add-to-list 'load-path (expand-file-name "custom" user-emacs-directory)) -(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) - -(require 'fcuny-vars) +(eval-and-compile + (add-to-list 'load-path (expand-file-name "custom" user-emacs-directory)) + (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) -;; where to store compiled files -(when (boundp 'native-comp-eln-load-path) - (add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache" fcuny/path-emacs-var))) + (require 'fcuny-vars) -;; where to store the packages -(setq package-user-dir fcuny/path-emacs-elpa) + ;; where to store compiled files + (when (boundp 'native-comp-eln-load-path) + (add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache" fcuny/path-emacs-var))) -;; initialize it -(setq package-enable-at-startup nil) -(package-initialize) + ;; where to store the packages + (setq package-user-dir fcuny/path-emacs-elpa) -;; if use-package is not present, we install it -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) + ;; initialize it + (setq package-enable-at-startup nil) + (package-initialize) -(require 'use-package) + ;; if use-package is not present, we install it + (unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + (require 'use-package) + (setq use-package-verbose t)) (require 'fcuny-commands) @@ -43,7 +49,6 @@ (require 'fcuny-git) (require 'fcuny-org) (require 'fcuny-conf) -(require 'fcuny-flycheck) (require 'fcuny-prog) (require 'fcuny-eshell) (require 'fcuny-tramp) @@ -52,3 +57,5 @@ ;; once we're done initializing the configuration, we start a shell ;; session with eshell. (fcuny/eshell-main) + +;;; init.el ends here |