From 4dc9f8040358f1d8001060d6d4abccc3a9c1d9e7 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 23 Mar 2021 13:56:52 -0500 Subject: [PATCH] No-littering after straight is bootstrapped and comment keybinding --- README.org | 30 ++++++++++++++++-------------- init.el | 18 ++++++++++-------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/README.org b/README.org index e31c5548..75ad9fb8 100644 --- a/README.org +++ b/README.org @@ -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 diff --git a/init.el b/init.el index ab08e776..1e2e10ff 100644 --- a/init.el +++ b/init.el @@ -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