No-littering after straight is bootstrapped and comment keybinding

This commit is contained in:
Chris Cochrun 2021-03-23 13:56:52 -05:00
parent 5fcb324069
commit 4dc9f80403
2 changed files with 26 additions and 22 deletions

View file

@ -4,9 +4,9 @@
* Table of Contents :toc:
- [[#init][Init]]
- [[#startup-performance][Startup Performance]]
- [[#keep-folders-clean][Keep Folders Clean]]
- [[#set-basic-ui-config][Set basic UI config]]
- [[#lets-bootstrap-straightel][Let's bootstrap straight.el]]
- [[#keep-folders-clean][Keep Folders Clean]]
- [[#ligatures][Ligatures]]
- [[#keybindings][Keybindings]]
- [[#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
(setq gc-cons-threshold 50000000)
#+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
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
@ -212,6 +200,18 @@ Let's also turn on =recentf-mode=.
:defer 1)
#+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
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
@ -302,7 +302,9 @@ This evil-collection package includes a lot of other evil based things.
"wd" '(delete-window :which-key "other window")
)
(general-def 'minibuffer-local-map
"C-v" 'evil-paste-after))
"C-v" 'evil-paste-after)
(general-def 'normal
"gcc" 'comment-line))
#+end_src
#+begin_src emacs-lisp

18
init.el
View file

@ -7,13 +7,6 @@
gcs-done))
(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)
(scroll-bar-mode -1)
@ -120,6 +113,13 @@
(which-key-mode)
: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 '((?! . "\\(?:!\\(?:==\\|[!=]\\)\\)")
(?# . "\\(?:#\\(?:###?\\|_(\\|[!#(:=?[_{]\\)\\)")
(?$ . "\\(?:\\$>\\)")
@ -198,7 +198,9 @@
"wd" '(delete-window :which-key "other window")
)
(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
:after evil