Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Last active October 15, 2017 06:20
Show Gist options
  • Save dustinlacewell-wk/8bf849ba1e71f06785b4ca59e7db82e2 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/8bf849ba1e71f06785b4ca59e7db82e2 to your computer and use it in GitHub Desktop.
Warning (initialization): An error occurred while loading ‘/Users/dustinlacewell/.emacs.d/init.el’:
File error: Cannot open load file, No such file or directory, use-package
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
(setq load-prefer-newer t)
(defconst user-emacs-directory
(file-name-directory (or load-file-name (buffer-file-name)))
"Local emacs config directory.")
(defconst user-cache-directory
(file-name-as-directory (concat user-emacs-directory ".cache"))
"My emacs storage area for persistent files.")
;; create the `user-cache-directory' if not exists
(make-directory user-cache-directory t)
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(setq mac-option-key-is-meta t
mac-command-key-is-meta nil
mac-option-modifier 'meta)
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
(setq backup-by-copying t)
(setq custom-file (concat user-emacs-directory "custom.el"))
(require 'use-package)
(require 'req-package)
(req-package--log-set-level 'trace)
(require-package 'use-package-chords)
(require 'use-package-chords)
(req-package helm
:bind (("M-x" . helm-M-x)
("C-x C-f" . helm-find-files)
("C-x b" . helm-buffers-list)
("C-c y" . helm-show-kill-ring)
("C-x C-r" . helm-recentf))
:config (require 'helm-config))
(req-package ace-jump-helm-line
:commands ace-jump-helm-line
:require helm
:init (define-key helm-map (kbd "C-;") 'ace-jump-helm-line))
(req-package helm-swoop
:commands helm-swoop-from-isearch
:require helm
:init (define-key isearch-mode-map (kbd "M-i") 'helm-swoop-from-isearch))
(req-package helm-descbinds
:commands helm-descbinds
:require helm)
(req-package helm-make
:commands helm-make
:require makefile-runner)
(req-package-finish)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment