85 lines
2.5 KiB
Plaintext
Executable File
85 lines
2.5 KiB
Plaintext
Executable File
(require 'package)
|
|
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
|
(package-initialize)
|
|
|
|
(unless (package-installed-p 'use-package)
|
|
(package-refresh-contents)
|
|
(package-install 'use-package))
|
|
(eval-and-compile
|
|
(setq use-package-always-ensure t
|
|
use-package-expand-minimally t))
|
|
|
|
(load "~/.emacs.rc/rc.el")
|
|
(load "~/.emacs.rc/misc-rc.el")
|
|
(load "~/.emacs.rc/org-mode-rc.el")
|
|
(load "~/.emacs.rc/autocommit-rc.el")
|
|
|
|
;; Look
|
|
(tool-bar-mode 0)
|
|
(menu-bar-mode 0)
|
|
(scroll-bar-mode 0)
|
|
(column-number-mode 1)
|
|
(show-paren-mode 1)
|
|
(electric-pair-mode 1)
|
|
(setq-default indent-tabs-mode t)
|
|
(setq-default tab-width 4)
|
|
(setq c-set-style "k&r")
|
|
(setq c-basic-offset 4)
|
|
(global-display-line-numbers-mode 1)
|
|
(setq display-line-numbers-type 'relative)
|
|
(set-face-attribute 'default nil :height 200)
|
|
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
|
(rc/require-theme 'gruber-darker)
|
|
|
|
;; neotree
|
|
(unless (package-installed-p 'neotree)
|
|
(package-install 'neotree)
|
|
(package-install 'all-the-icons))
|
|
|
|
(setq neo-theme (if (display-graphic-p) 'icons))
|
|
(setq neo-smart-open t)
|
|
(global-set-key [f8] 'neotree-toggle)
|
|
|
|
;; Simpleclip
|
|
(unless (package-installed-p 'simpleclip)
|
|
(package-install 'simpleclip))
|
|
|
|
(global-set-key (kbd "C-c C-c") 'simpleclip-copy)
|
|
(global-set-key (kbd "C-c C-v") 'simpleclip-paste)
|
|
|
|
;; Magit
|
|
(unless (package-installed-p 'magit)
|
|
(package-install 'magit))
|
|
|
|
;; go-mode
|
|
(unless (package-installed-p 'go-mode)
|
|
(package-install 'go-mode))
|
|
|
|
;; Rust mode
|
|
(unless (package-installed-p 'rust-mode)
|
|
(package-refresh-contents)
|
|
(package-install 'rust-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
|
|
'(evil rust-mode go-mode smex simpleclip paredit org-cliplink neotree multiple-cursors magit ido-completing-read+ helm haskell-mode gruber-darker-theme dash-functional all-the-icons)))
|
|
(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.
|
|
)
|