No-littering after straight is bootstrapped and comment keybinding
This commit is contained in:
parent
5fcb324069
commit
4dc9f80403
30
README.org
30
README.org
|
@ -4,9 +4,9 @@
|
||||||
* Table of Contents :toc:
|
* Table of Contents :toc:
|
||||||
- [[#init][Init]]
|
- [[#init][Init]]
|
||||||
- [[#startup-performance][Startup Performance]]
|
- [[#startup-performance][Startup Performance]]
|
||||||
- [[#keep-folders-clean][Keep Folders Clean]]
|
|
||||||
- [[#set-basic-ui-config][Set basic UI config]]
|
- [[#set-basic-ui-config][Set basic UI config]]
|
||||||
- [[#lets-bootstrap-straightel][Let's bootstrap straight.el]]
|
- [[#lets-bootstrap-straightel][Let's bootstrap straight.el]]
|
||||||
|
- [[#keep-folders-clean][Keep Folders Clean]]
|
||||||
- [[#ligatures][Ligatures]]
|
- [[#ligatures][Ligatures]]
|
||||||
- [[#keybindings][Keybindings]]
|
- [[#keybindings][Keybindings]]
|
||||||
- [[#undo-tree][Undo-Tree]]
|
- [[#undo-tree][Undo-Tree]]
|
||||||
|
@ -55,18 +55,6 @@ Let's also set the =gc-cons-threshold= variable to a high setting for the remain
|
||||||
#+begin_src emacs-lisp :tangle no
|
#+begin_src emacs-lisp :tangle no
|
||||||
(setq gc-cons-threshold 50000000)
|
(setq gc-cons-threshold 50000000)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Keep Folders Clean
|
|
||||||
|
|
||||||
Let's use =no-littering= in order to stop emacs from filling all our folders with junk.
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(use-package no-littering)
|
|
||||||
|
|
||||||
;; no-littering doesn't set this by default so we must place
|
|
||||||
;; auto save files in the same path as it uses for sessions
|
|
||||||
(setq auto-save-file-name-transforms
|
|
||||||
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Set basic UI config
|
** Set basic UI config
|
||||||
Let's start by making some basic ui changes like turning off the scrollbar, toolbar, menu, tooltips, and setting our font and some things.
|
Let's start by making some basic ui changes like turning off the scrollbar, toolbar, menu, tooltips, and setting our font and some things.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -212,6 +200,18 @@ Let's also turn on =recentf-mode=.
|
||||||
:defer 1)
|
:defer 1)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Keep Folders Clean
|
||||||
|
|
||||||
|
Let's use =no-littering= in order to stop emacs from filling all our folders with junk.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package no-littering)
|
||||||
|
|
||||||
|
;; no-littering doesn't set this by default so we must place
|
||||||
|
;; auto save files in the same path as it uses for sessions
|
||||||
|
(setq auto-save-file-name-transforms
|
||||||
|
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Ligatures
|
** Ligatures
|
||||||
Here let's try to add ligatures to our font system since the VictorMono Nerd Font supports all ligatures being a "Nerd Font".
|
Here let's try to add ligatures to our font system since the VictorMono Nerd Font supports all ligatures being a "Nerd Font".
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -302,7 +302,9 @@ This evil-collection package includes a lot of other evil based things.
|
||||||
"wd" '(delete-window :which-key "other window")
|
"wd" '(delete-window :which-key "other window")
|
||||||
)
|
)
|
||||||
(general-def 'minibuffer-local-map
|
(general-def 'minibuffer-local-map
|
||||||
"C-v" 'evil-paste-after))
|
"C-v" 'evil-paste-after)
|
||||||
|
(general-def 'normal
|
||||||
|
"gcc" 'comment-line))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
18
init.el
18
init.el
|
@ -7,13 +7,6 @@
|
||||||
gcs-done))
|
gcs-done))
|
||||||
(add-hook 'emacs-startup-hook #'chris/display-startup-time)
|
(add-hook 'emacs-startup-hook #'chris/display-startup-time)
|
||||||
|
|
||||||
(use-package no-littering)
|
|
||||||
|
|
||||||
;; no-littering doesn't set this by default so we must place
|
|
||||||
;; auto save files in the same path as it uses for sessions
|
|
||||||
(setq auto-save-file-name-transforms
|
|
||||||
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
|
||||||
|
|
||||||
(setq inhibit-startup-message t)
|
(setq inhibit-startup-message t)
|
||||||
|
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
@ -120,6 +113,13 @@
|
||||||
(which-key-mode)
|
(which-key-mode)
|
||||||
:defer 1)
|
:defer 1)
|
||||||
|
|
||||||
|
(use-package no-littering)
|
||||||
|
|
||||||
|
;; no-littering doesn't set this by default so we must place
|
||||||
|
;; auto save files in the same path as it uses for sessions
|
||||||
|
(setq auto-save-file-name-transforms
|
||||||
|
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
|
||||||
|
|
||||||
(let ((alist '((?! . "\\(?:!\\(?:==\\|[!=]\\)\\)")
|
(let ((alist '((?! . "\\(?:!\\(?:==\\|[!=]\\)\\)")
|
||||||
(?# . "\\(?:#\\(?:###?\\|_(\\|[!#(:=?[_{]\\)\\)")
|
(?# . "\\(?:#\\(?:###?\\|_(\\|[!#(:=?[_{]\\)\\)")
|
||||||
(?$ . "\\(?:\\$>\\)")
|
(?$ . "\\(?:\\$>\\)")
|
||||||
|
@ -198,7 +198,9 @@
|
||||||
"wd" '(delete-window :which-key "other window")
|
"wd" '(delete-window :which-key "other window")
|
||||||
)
|
)
|
||||||
(general-def 'minibuffer-local-map
|
(general-def 'minibuffer-local-map
|
||||||
"C-v" 'evil-paste-after))
|
"C-v" 'evil-paste-after)
|
||||||
|
(general-def 'normal
|
||||||
|
"gcc" 'comment-line))
|
||||||
|
|
||||||
(use-package evil-escape
|
(use-package evil-escape
|
||||||
:after evil
|
:after evil
|
||||||
|
|
Loading…
Reference in a new issue