Last active
March 28, 2020 10:07
-
-
Save bobbicodes/79e83a076bc6ccdc58ba0eaa7b0cd513 to your computer and use it in GitHub Desktop.
lightweight emacs config with inf-clojure, evil-mode, nyan cat, cyberpunk theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(menu-bar-mode -1) | |
(toggle-scroll-bar -1) | |
(tool-bar-mode -1) | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
(package-initialize) | |
(package-refresh-contents) | |
(unless (package-installed-p 'inf-clojure) | |
(package-install 'inf-clojure)) | |
(unless (package-installed-p 'evil) | |
(package-install 'evil)) | |
(unless (package-installed-p 'rainbow-delimiters) | |
(package-install 'rainbow-delimiters)) | |
(unless (package-installed-p 'company) | |
(package-install 'company)) | |
(unless (package-installed-p 'cyberpunk-theme) | |
(package-install 'cyberpunk-theme)) | |
(unless (package-installed-p 'nyan-mode) | |
(package-install 'nyan-mode)) | |
(unless (package-installed-p 'aggressive-indent) | |
(package-install 'aggressive-indent)) | |
(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 | |
(monokai-theme company-mode nyan-mode inf-clojure aggressive-indent rainbow-delimiters)))) | |
(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. | |
) | |
(require 'rainbow-delimiters) | |
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode) | |
(add-hook 'clojure-mode-hook #'aggressive-indent-mode) | |
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode) | |
(setf inf-clojure-tools-deps-cmd '("localhost" . 1666)): | |
(global-company-mode) | |
(setq company-idle-delay nil) ; never start completions automatically | |
(global-set-key (kbd "TAB") #'company-complete) | |
(nyan-mode 1) | |
(nyan-toggle-wavy-trail) | |
(nyan-start-animation) | |
(load-theme 'cyberpunk t) | |
(require 'evil) | |
(evil-mode 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment