aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorHumphrey Lin <[email protected]>2020-12-01 18:10:09 +0000
committerHumphrey Lin <[email protected]>2020-12-01 18:10:09 +0000
commit514eab77de4da4b9ffb4c411d81729d04e55588f (patch)
treee601f5f0d4737c7b2b8c98fde6c5020babee2238 /.emacs.d/init.el
parent3e322ad69f8a2e6dad7f41df0d426258a15fa999 (diff)
downloaddotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.tar.gz
dotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.tar.bz2
dotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.zip
Add config of i3wm and modify the EDITOR in .zshrc
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el29
1 files changed, 29 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
new file mode 100644
index 0000000..e19b102
--- /dev/null
+++ b/.emacs.d/init.el
@@ -0,0 +1,29 @@
+;; Set up package.el to work with MELPA
+(require 'package)
+(add-to-list 'package-archives
+ '("melpa" . "https://melpa.org/packages/"))
+(package-initialize)
+(package-refresh-contents)
+
+(when (version<= "26.0.50" emacs-version)
+ (global-display-line-numbers-mode))
+
+;; Download Evil
+(unless (package-installed-p 'evil)
+ (package-install 'evil))
+
+;; Enable Evil
+(require 'evil)
+(evil-mode 1)
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages (quote (evil))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )