Update .emacs
This commit is contained in:
parent
2213548f83
commit
d43ccd7033
1 changed files with 43 additions and 32 deletions
75
.emacs
75
.emacs
|
@ -1,13 +1,20 @@
|
|||
;; Get deps on Debian w/
|
||||
;; sudo apt install elpa-monokai-theme elpa-go-mode elpa-rust-mode elpa-php-mode elpa-which-key elpa-magit elpa-web-mode elpa-flycheck
|
||||
|
||||
;; configure packages that are installed ABOVE
|
||||
(load-theme 'monokai t)
|
||||
(which-key-mode +1)
|
||||
|
||||
;; Thank you Bozhidar Batsov for inspiration!
|
||||
;; Inspirational config found from https://github.com/bbatsov/emacs.d/
|
||||
;; Also check out Emacs Prelude at https://github.com/bbatsov/prelude/
|
||||
(setq inhibit-startup-message t)
|
||||
(global-linum-mode t)
|
||||
(global-whitespace-mode t)
|
||||
;(global-whitespace-mode t)
|
||||
(delete-selection-mode t)
|
||||
(global-tab-line-mode t)
|
||||
(when (fboundp 'tool-bar-mode)
|
||||
(tool-bar-mode -1))
|
||||
;(when (fboundp 'tool-bar-mode)
|
||||
; (tool-bar-mode -1))
|
||||
(setq backward-delete-char-untabify-method nil)
|
||||
(setq c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "linux")))
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
|
@ -17,6 +24,10 @@
|
|||
(column-number-mode t)
|
||||
(size-indication-mode t)
|
||||
|
||||
;; Tabbbbbbz
|
||||
(setq tab-width 8
|
||||
c-basic-offset tab-width
|
||||
)
|
||||
|
||||
;; nice scrolling
|
||||
(setq scroll-margin 0
|
||||
|
@ -29,6 +40,10 @@
|
|||
(setq auto-save-file-name-transforms
|
||||
`((".*" ,temporary-file-directory t)))
|
||||
|
||||
;; Code compilation shenanigans
|
||||
;(setq native-comp-speed -1)
|
||||
;(setq native-comp-jit-compilation nil)
|
||||
;(setq native-comp-enable-subr-trampolines nil)
|
||||
|
||||
(require 'package)
|
||||
|
||||
|
@ -46,40 +61,36 @@
|
|||
|
||||
(require 'use-package)
|
||||
(setq use-package-verbose t)
|
||||
(setq package-install-upgrade-built-in t)
|
||||
|
||||
;; (use-package monokai-theme
|
||||
;; :ensure t
|
||||
;; :config
|
||||
;; (load-theme 'monokai t))
|
||||
|
||||
(use-package hl-line
|
||||
:ensure t
|
||||
:config
|
||||
(global-hl-line-mode +1))
|
||||
|
||||
(use-package monokai-theme
|
||||
:ensure t
|
||||
:config
|
||||
(load-theme 'monokai t))
|
||||
;; (use-package which-key
|
||||
;; :ensure t
|
||||
;; :config
|
||||
;; (which-key-mode +1)
|
||||
;; ;(diminish 'which-key-mode)
|
||||
;; )
|
||||
|
||||
(use-package magit
|
||||
:ensure t
|
||||
:bind (("C-x g" . magit-status)))
|
||||
;; (use-package magit
|
||||
;; :ensure t
|
||||
;; :bind (("C-x g" . magit-status)))
|
||||
|
||||
(use-package rust-mode
|
||||
;; (use-package go-mode
|
||||
;; :ensure t)
|
||||
;; (use-package web-mode
|
||||
;; :ensure t)
|
||||
;; (use-package markdown-mode
|
||||
;; :ensure t)
|
||||
(use-package nasm-mode
|
||||
:ensure t)
|
||||
|
||||
(use-package which-key
|
||||
:ensure t
|
||||
:config
|
||||
(which-key-mode +1)
|
||||
;(diminish 'which-key-mode)
|
||||
)
|
||||
|
||||
(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 '(which-key rust-mode magit monokai-theme use-package)))
|
||||
(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.
|
||||
)
|
||||
(put 'dired-find-alternate-file 'disabled nil)
|
||||
;; (use-package flycheck
|
||||
;; :ensure t)
|
||||
|
|
Loading…
Add table
Reference in a new issue