-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.org~
234 lines (230 loc) · 5.88 KB
/
readme.org~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
* Interface Tweaks
#+BEGIN_SRC emacs-lisp
;; housekeeping
(setq inhibit-startup-message t)
(tool-bar-mode -1)
(set-window-fringes nil 0 0)
;;(menu-bar-mode -1)
(setq frame-title-format "emacs")
(scroll-bar-mode -1)
(fset 'yes-or-no-p ' y-or-n-p)
;;
(setq org-src-fontify-natively t)
(show-paren-mode)
(fset 'jdent
[return return ?\C-p tab])
(global-set-key (kbd "C-j") nil)
(global-set-key (kbd "C-j") 'jdent)
(set-face-attribute 'vertical-border
nil
:foreground "#282a2e")
#+END_SRC
* Try
#+BEGIN_SRC emacs-lisp
;; let's user try a package before installing
(use-package try
:ensure t)
#+END_SRC
* Which-key
#+BEGIN_SRC emacs-lisp
;; useful for remembering what keys do
(use-package which-key
:ensure t
:config
(which-key-mode))
#+END_SRC
* Org mode
#+BEGIN_SRC emacs-lisp
;; Org-mode stuff
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
#+END_SRC
* ido
#+BEGIN_SRC emacs-lisp
;; ido stuff (I now use swiper/counsel)
;;(setq ido-enable-flex-matching t)
;;(setq ido-everywhere t)
;;(ido-mode 1)
#+END_SRC
* Buffers
#+BEGIN_SRC emacs-lisp
;; for buffers
;;(defalias 'list-buffers 'ibuffer)
;; use this to open buffers in a seperate window
(defalias 'list-buffers 'ibuffer-other-window)
#+END_SRC
* Window Management
#+BEGIN_SRC emacs-lisp
;; ace-windows & other window configurations
(use-package ace-window
:ensure t
:init
(progn
(global-set-key [remap other-window] 'ace-window)
(custom-set-faces
'(aw-leading-char-face
((t (:inherit ace-jump-face-foreground :height 1.0)))))
))
(windmove-default-keybindings)
(winner-mode 1)
#+END_SRC
* Swiper
#+BEGIN_SRC emacs-lisp
;; using swiper for search and such
(use-package counsel
:ensure t
)
(use-package swiper
:ensure t
:config
(progn
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
(setq ivy-display-style 'fancy)
(global-set-key "\C-s" 'swiper)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "C-c g") 'counsel-git)
(global-set-key (kbd "C-c j") 'counsel-git-grep)
(global-set-key (kbd "C-c k") 'counsel-ag)
(global-set-key (kbd "C-x l") 'counsel-locate)
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
))
#+END_SRC
* Avy
#+BEGIN_SRC emacs-lisp
;; avy jump to things in Emacs tree style using chars
(use-package avy
:ensure t
:bind ("M-s" . avy-goto-char))
#+END_SRC
* auto-complete
#+BEGIN_SRC emacs-lisp
;; autocomplete using auto-complete
;;(use-package auto-complete
;; :ensure t
;; :init
;; (progn
;; (ac-config-default)
;; (global-auto-complete-mode t)
;; ))
#+END_SRC
* Company
#+BEGIN_SRC emacs-lisp
(use-package company
:ensure t)
(add-hook 'after-init-hook 'global-company-mode)
(require 'color)
#+END_SRC
* Themes
#+BEGIN_SRC emacs-lisp
;; Themes for Emacs
(use-package color-theme
:ensure t)
;; This is a variant of zenburn which used to be called darkburn
;;(use-package zenburn-theme
;; :ensure t
;; :config (load-theme 'zenburn t))
;;(setq zenburn-override-colors-alist
;; '(("zenburn-bg" . "#000000")
;;("zenburn-bg+1" . "#111111")
;;("zenburn-bg+2" . "#111111")
;;("zenburn-bg+3" . "#111111")
;;("zenburn-bg+05" . "#111111")
;; ))
;;(load-theme 'zenburn t)
(use-package afternoon-theme
:ensure t
:config (load-theme 'afternoon t))
(set-face-background 'fringe "#181a26")
(require 'linum nil 'noerror)
(set-face-foreground 'linum "#969896")
#+END_SRC
* Powerline
#+BEGIN_SRC emacs-lisp
;; (use-package powerline
;; :ensure t
;; :config
;; (require 'powerline)
;; (powerline-default-theme))
;; (set-face-attribute 'power-line nil
;; :box '(:width 0))
#+END_SRC
* Spaceline
#+begin_src emacs-lisp :tangle yes
(use-package spaceline
:ensure t
:config
(require 'spaceline-config)
(setq spaceline-buffer-encoding-abbrev-p nil)
(setq spaceline-line-column-p nil)
(setq spaceline-line-p nil)
(setq powerline-default-separator (quote arrow))
(spaceline-spacemacs-theme))
(setq spaceline-default-separator nil)
#+end_src
* Flycheck
#+BEGIN_SRC emacs-lisp
(use-package flycheck
:ensure t
:init
(global-flycheck-mode t))
#+END_SRC
* Yasnippet
-Install more modes from their github
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:ensure t
:init
(yas-global-mode 1))
#+END_SRC
* Neotree
#+BEGIN_SRC emacs-lisp
(use-package neotree
:ensure t
:config
(require 'neotree)
(global-set-key [f8] 'neotree-toggle))
;(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
#+END_SRC
* all-the-icons
#+BEGIN_SRC emacs-lisp
;; currently out of order
#+END_SRC
* Smartparens
#+BEGIN_SRC emacs-lisp
(use-package smartparens
:ensure t
:init
(require 'smartparens-config)
(smartparens-global-mode 1)
(smartparens-global-strict-mode 1))
#+END_SRC
* linum
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "<f9>") 'linum-mode)
#+END_SRC
* Sublimity
#+begin_src emacs-lisp :tangle yes
(require 'sublimity)
(require 'sublimity-scroll)
(sublimity-mode 1)
#+end_src
* Minimap
#+begin_src emacs-lisp :tangle yes
(minimap-mode 1)
#+end_src
* Python
#+BEGIN_SRC emacs-lisp
;;(use-package anaconda-mode)
(add-hook 'python-mode-hook 'anaconda-mode)
(add-hook 'python-mode-hook 'anaconda-eldoc-mode)
(setq python-shell-interpreter "python3")
(eval-after-load "company"
'(add-to-list 'company-backends 'company-anaconda))
(add-hook 'python-mode-hook 'anaconda-mode)
#+END_SRC