Fix Emacs installation
My Emacs installation would fail on new machines because: * use-package * evil * paredit use-package is needed to install everything else. evil and paredit were required in functions.el and other places before they were called like (use-package evil ...). This should improve things but not fix the entire issue.
This commit is contained in:
parent
a5512fd706
commit
44e46bbce2
6 changed files with 5 additions and 24 deletions
|
@ -7,9 +7,6 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 's)
|
|
||||||
(require 'dash)
|
|
||||||
|
|
||||||
;; todo - grab the string at point and replace it with the output of
|
;; todo - grab the string at point and replace it with the output of
|
||||||
;; each fn
|
;; each fn
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
;; Hosts ergonomic functions for working with a filesystem.
|
;; Hosts ergonomic functions for working with a filesystem.
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'dash)
|
|
||||||
(require 'f)
|
|
||||||
|
|
||||||
(defun ensure-file-path (path)
|
(defun ensure-file-path (path)
|
||||||
"Ensure that a file and its directories in PATH exist.
|
"Ensure that a file and its directories in PATH exist.
|
||||||
Will error for inputs with a trailing slash."
|
Will error for inputs with a trailing slash."
|
||||||
|
|
|
@ -5,14 +5,6 @@
|
||||||
;; This file hopefully contains friendly APIs that making ELisp development more enjoyable.
|
;; This file hopefully contains friendly APIs that making ELisp development more enjoyable.
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'evil)
|
|
||||||
(require 'projectile)
|
|
||||||
(require 'paredit)
|
|
||||||
(require 'term)
|
|
||||||
(require 'f)
|
|
||||||
(require 'yasnippet)
|
|
||||||
(require 'ido)
|
|
||||||
|
|
||||||
(defun wpc/evil-window-vsplit-right ()
|
(defun wpc/evil-window-vsplit-right ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(evil-window-vsplit)
|
(evil-window-vsplit)
|
||||||
|
|
|
@ -5,11 +5,6 @@
|
||||||
;; This file contains helpful variables that I use in my ELisp development.
|
;; This file contains helpful variables that I use in my ELisp development.
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'dash)
|
|
||||||
(require 's)
|
|
||||||
(require 'string-functions)
|
|
||||||
|
|
||||||
(defmacro xi (&rest FORMS)
|
(defmacro xi (&rest FORMS)
|
||||||
`(lambda ,(--filter (s-contains? (symbol-name it)
|
`(lambda ,(--filter (s-contains? (symbol-name it)
|
||||||
(prin1-to-string FORMS))
|
(prin1-to-string FORMS))
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(require 'use-package)
|
(unless (package-installed-p 'use-package)
|
||||||
|
(package-refresh-contents)
|
||||||
|
(package-install 'use-package))
|
||||||
|
(eval-when-compile
|
||||||
|
(require 'use-package))
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
(use-package general)
|
(use-package general)
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'dash)
|
|
||||||
(require 's)
|
|
||||||
|
|
||||||
;; Strings
|
;; Strings
|
||||||
(defun string/hookify (x)
|
(defun string/hookify (x)
|
||||||
"Append \"-hook\" to X."
|
"Append \"-hook\" to X."
|
||||||
|
|
Loading…
Reference in a new issue