;; Initialize the package system first of all. (require 'package) ;; see https://github.com/melpa/melpa/issues/7238 ;; without this I'm unable to contact melpa on macos (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("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) ;; 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))) ;; where to store the packages (setq package-user-dir fcuny/path-emacs-elpa) ;; initialize it (setq package-enable-at-startup nil) (package-initialize) ;; 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) (require 'fcuny-commands) (require 'fcuny-settings) (require 'fcuny-ui) (require 'fcuny-defuns) (require 'fcuny-navigation) (require 'fcuny-edit) (require 'fcuny-text) (require 'fcuny-git) (require 'fcuny-org) (require 'fcuny-conf) (require 'fcuny-flycheck) (require 'fcuny-prog) (require 'fcuny-eshell) (require 'fcuny-tramp) (require 'fcuny-twitter) (require 'fcuny-notmuch) ;; once we're done initializing the configuration, we start a shell ;; session with eshell. (fcuny/eshell-main)