From 46b27463d9c018d2e5c957a9886d8c330970f579 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 2 Nov 2020 00:01:59 -0600 Subject: Remove TOC --- README.md | 238 ------------------------------------------------------------- config.org | 1 + 2 files changed, 1 insertion(+), 238 deletions(-) diff --git a/README.md b/README.md index f0e7217..608d9f8 100644 --- a/README.md +++ b/README.md @@ -1,96 +1,10 @@ -# Table of Contents - -1. [Preamble](#org0bff216) -2. [License](#orged58376) -3. [Bootstrap](#org4c40f13) - 1. [Tangling](#orgdd48fb7) -4. [Early initiation](#orgf06a67b) - 1. [Preamble](#org790f346) - 2. [Computers](#org27a9d06) - 3. [Package management](#org982c51d) - 1. [At work, Git's in a weird place](#org1d43543) - 2. [straight.el](#orgc3c01af) - 3. [use-package](#org75b502f) -5. [Begin init.el](#orge258966) -6. [Macros](#org429e2c9) - 1. [cuss](#org98b79c1) -7. [Files](#orgef614d8) - 1. [Keep .emacs.d tidy](#orgcd98663) - 2. [Customize](#orgfa8ddd8) - 3. [Encoding](#org7d9d257) - 4. [Recent files](#org5a20cd6) - 5. [Backups](#org48971aa) - 6. [Autosave](#org3243bbe) - 7. [Save places](#org1ad3687) - 8. [Save history](#orge49f590) -8. [User interface](#orgbaf79a4) - 1. [Look](#org57b0df2) - 1. [Frames and windows](#org7eea925) - 2. [Buffers](#orgb767f7c) - 3. [Cursor](#org8983905) - 4. [Interactivity](#org62c9668) - 5. [Miscellaneous](#org1ea822c) - 2. [Themes: Modus](#org677f380) - 1. [Change themes based on time of day](#orgb821d6f) - 2. [Disable the current theme when a theme is interactively loaded](#org5e81fc5) - 3. [Modeline: smart-mode-line](#org8ab1e2a) - 4. [Fonts](#org31ee2e5) - 1. [Ligatures](#org77dea9d) - 2. [Unicode fonts](#orgcda6a3b) -9. [Editing](#org14ea5cc) - 1. [Completion](#org46827ec) - 2. [Ignore case](#orga788d6a) - 3. [Selection & Minibuffer](#org706315a) - 1. [Selectrum & Prescient](#org294ff45) - 4. [Search](#org2c0ce4c) - 1. [CtrlF for searching](#org2ee70e6) - 2. [Visual Regexp](#orgce9fee5) - 5. [Undo](#orgd0935a4) - 6. [Visual editing](#org90fff82) - 1. [`zap-to-char` replacement](#orgaf545a8) - 2. [Operate on a line if there's no current region](#orga6c374d) - 3. [Expand-region](#orgc10cc77) - 4. [Volatile highlights](#orge349e7b) - 5. [Visual line mode](#org2537d6e) - 6. [A better `move-beginning-of-line`](#orgb4e6549) - 7. [Delete the selection when typing](#orga87bcd4) - 8. [Clipboard](#org383042b) - 9. [Tabs & Spaces](#orge8f1064) -10. [Programming](#org7ebcef6) - 1. [Git](#org9139ba2) - 2. [Code display](#org158c62e) - 1. [Parentheses](#orga6fefd0) - 3. [Line numbers](#orge880bac) - 4. [Languages](#orgd13b98f) - 1. [Shell](#org7b82a1d) - 2. [Lua](#orgfe2fd7e) - 3. [Fennel](#org3000823) - 4. [Web](#org38d26c9) - 5. [SSH config](#org9ae6b0f) -11. [Writing](#org100f1c7) - 1. [Word count](#orgfbddaf6) - 2. [Visual fill column](#org32c015a) - 3. [Mixed-pitch](#orgcb552ec) - 4. [Org mode](#org3025d5a) -12. [Applications](#org7eada39) - 1. [Gemini & Gopher](#orgc966a52) - 2. [Pastebin](#orgf849ba8) - 3. [Gnus](#orge75cc1a) - 4. [Nov.el: read Ebooks](#org82ec7aa) -13. [Machine-specific configurations](#orga88ef69) - - - - # Preamble I wanted to write my Emacs configuration in [Org mode](https://orgmode.org) for a while, but never could quite figure out how. Finally, I found [Lars Tveito](https://github.com/larstvei/dot-emacs)'s config, which does exactly what I want: `init.el` is small and simple, and replaced after the first run, and `init.org` is automatically tangled. So I'm very excited. - - # License WTFPL. For more info, see `LICENSE`. @@ -99,8 +13,6 @@ Probably that's not legal under the terms of the GPL or whatever Emacs is licens SUE ME, RMS - - # Bootstrap *Check out Lars's config for the reasoning behind this.* @@ -121,8 +33,6 @@ When this configuration is loaded for the first time, this `init.el` is loaded: (byte-compile-file (concat user-emacs-directory "init.el")) - - ## Tangling After the first run, the above `init.el` will be replaced by the tangled stuff here. However, when *this* file is edited, we'll need to re-tangle everything. However, nobody has time to do that manually with `C-c C-v t`, *every time*! Luckily, Emacs is highly programmable. @@ -140,15 +50,11 @@ After the first run, the above `init.el` will be replaced by the tangled stuff h (add-hook 'after-save-hook #'acdw/tangle-init) - - # Early initiation Emacs 27.1+ uses `early-init.el`, which is evaluated before things like `package.el` and other stuff. So I have a few settings in there. - - ## Preamble Of course, first thing is the modeline. After that, I set `load-prefer-newer` because, well, it *should*. @@ -158,8 +64,6 @@ Of course, first thing is the modeline. After that, I set `load-prefer-newer` b (setq load-prefer-newer t) - - ## Computers I have to set these constants before bootstrapping the package manager, since `straight.el` depends on Git, and at work, those are in a weird place. @@ -170,15 +74,11 @@ I have to set these constants before bootstrapping the package manager, since `s (defconst *acdw/at-home* (or *acdw/at-larry* *acdw/at-bax*)) - - ## Package management I've started using straight.el, which is great. It grabs packages from git, and apparently will let me fork and edit them, which I'll probably get around to … eventually. - - ### At work, Git's in a weird place (when *acdw/at-work* @@ -186,8 +86,6 @@ I've started using straight.el, which is great. It grabs packages from git, and (add-to-list 'exec-path "C:/Users/aduckworth/Downloads/PortableGit/bin")) - - ### [straight.el](https://github.com/raxod502/straight.el) I don't know why, but for some reason the bootstrapping doesn't work on Windows. I have to download the repo directly from github and put it in the right place (`~/.emacs.d/straight/repos/straight.el/`). @@ -207,8 +105,6 @@ I don't know why, but for some reason the bootstrapping doesn't work on Windows. (load bootstrap-file nil 'nomessage)) - - ### [use-package](https://github.com/jwiegley/use-package) Yeah, you know it, I know it, we all love it. It's use-package. @@ -217,21 +113,15 @@ Yeah, you know it, I know it, we all love it. It's use-package. (straight-use-package 'use-package) - - # Begin init.el ;;; init.el -*- lexical-binding: t; coding: utf-8 -*- <> - - # Macros - - ## cuss I like `use-package`, but I don't like doing the weird "pseudo-package" stuff a lot of people do in their emacs configs. Partially because I have to set `:straight nil` on a lot of built-in packages, but also because I think being *that* obsessive over one interface through the whole config is … I don't know, short-sighted? @@ -245,21 +135,15 @@ Either way, I *do* like the `:custom` interface that `use-package` has, so I've ',var ,val))) - - # Files - - ## [Keep .emacs.d tidy](https://github.com/emacscollective/no-littering) (straight-use-package 'no-littering) (require 'no-littering) - - ## Customize I don't like the customize interface, but I still sometimes use it when I'm not sure what the name of a variable is. So I save the stuff to a file, I just don't load it or keep track of it. @@ -267,8 +151,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (cuss custom-file (no-littering-expand-etc-file-name "custom.el")) - - ## Encoding (prefer-coding-system 'utf-8-unix) @@ -283,8 +165,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (cuss x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) - - ## Recent files (use-package recentf @@ -298,16 +178,12 @@ I don't like the customize interface, but I still sometimes use it when I'm not (recentf-mode 1)) - - ## Backups (cuss backup-directory-alist `((".*" . ,(no-littering-expand-var-file-name "backup/")))) - - ## [Autosave](https://github.com/bbatsov/super-save) (use-package super-save @@ -318,8 +194,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (super-save-mode 1)) - - ## [Save places](https://www.emacswiki.org/emacs/SavePlace) (use-package saveplace @@ -330,8 +204,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (save-place-mode 1)) - - ## [Save history](https://www.emacswiki.org/emacs/SaveHist) (use-package savehist @@ -345,18 +217,12 @@ I don't like the customize interface, but I still sometimes use it when I'm not (savehist-mode 1)) - - # User interface - - ## Look - - ### Frames and windows 1. Frame defaults @@ -381,8 +247,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (cuss window-combination-resize t) - - ### Buffers (cuss uniquify-buffer-name-style 'forward) @@ -400,8 +264,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (cuss initial-scratch-message nil) - - ### Cursor (cuss cursor-type 'bar) @@ -409,8 +271,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (blink-cursor-mode 0) - - ### Interactivity 1. Mouse @@ -430,8 +290,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (fset 'yes-or-no-p #'y-or-n-p) - - ### Miscellaneous 1. Convert `^L` to a line @@ -441,16 +299,12 @@ I don't like the customize interface, but I still sometimes use it when I'm not (global-page-break-lines-mode 1)) - - ## Themes: [Modus](https://github.com/protesilaos/modus-themes) (use-package modus-operandi-theme) (use-package modus-vivendi-theme) - - ### [Change themes](https://github.com/hadronzoo/theme-changer) based on time of day (use-package theme-changer @@ -462,8 +316,6 @@ I don't like the customize interface, but I still sometimes use it when I'm not (change-theme 'modus-operandi 'modus-vivendi)) - - ### Disable the current theme when a theme is interactively loaded This doesn't happen often, but I'll be ready when it does. @@ -473,8 +325,6 @@ This doesn't happen often, but I'll be ready when it does. (mapc 'disable-theme custom-enabled-themes)) - - ## Modeline: [smart-mode-line](https://github.com/Malabarba/smart-mode-line) (use-package smart-mode-line @@ -496,8 +346,6 @@ I hide all minor-modes by default for a clean modeline. However, I can add them (mapconcat 'identity rm--whitelist-regexps "\\|"))) - - ## Fonts I'm sure there's a better way to do this, but for now, this is the best I've got. I append to the `face-font-family-alternatives` because I don't know what kind of weird magic they're doing in there. @@ -525,8 +373,6 @@ I'm sure there's a better way to do this, but for now, this is the best I've got :height 130) - - ### Ligatures These cause big problems with cc-mode (as in, totally freezing everything), so I'm going to comment it out. @@ -555,8 +401,6 @@ These cause big problems with cc-mode (as in, totally freezing everything), so I ;; (global-ligature-mode)) - - ### [Unicode fonts](https://github.com/rolandwalker/unicode-fonts) (use-package persistent-soft) @@ -567,13 +411,9 @@ These cause big problems with cc-mode (as in, totally freezing everything), so I (unicode-fonts-setup)) - - # Editing - - ## Completion I was using company, but I think it might've been causing issues with `awk-mode`, so I'm trying `hippie-mode` right now. So far, I'm also enjoying not having a popup all the time. @@ -581,8 +421,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (bind-key "M-/" #'hippie-expand) - - ## Ignore case (cuss completion-ignore-case t) @@ -590,13 +428,9 @@ I was using company, but I think it might've been causing issues with `awk-mode` (cuss read-file-name-completion-ignore-case t) - - ## Selection & Minibuffer - - ### Selectrum & Prescient (use-package selectrum @@ -613,13 +447,9 @@ I was using company, but I think it might've been causing issues with `awk-mode` (selectrum-prescient-mode +1)) - - ## Search - - ### CtrlF for searching (use-package ctrlf @@ -631,8 +461,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` ("C-s" . ctrlf-forward-regexp)) - - ### [Visual Regexp](https://github.com/benma/visual-regexp.el) (use-package visual-regexp @@ -640,8 +468,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` ([remap query-replace] . 'vr/query-replace)) - - ## Undo (use-package undo-fu @@ -661,13 +487,9 @@ I was using company, but I think it might've been causing issues with `awk-mode` (global-undo-fu-session-mode +1)) - - ## Visual editing - - ### `zap-to-char` replacement (use-package zop-to-char @@ -676,8 +498,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` ([remap zap-up-to-char] . zop-up-to-char)) - - ### Operate on a line if there's no current region (use-package whole-line-or-region @@ -685,8 +505,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (whole-line-or-region-global-mode +1)) - - ### Expand-region (use-package expand-region @@ -695,8 +513,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` ("C-+" . er/contract-region)) - - ### Volatile highlights (use-package volatile-highlights @@ -704,15 +520,11 @@ I was using company, but I think it might've been causing issues with `awk-mode` (volatile-highlights-mode 1)) - - ### Visual line mode (global-visual-line-mode 1) - - ### A better `move-beginning-of-line` (defun my/smarter-move-beginning-of-line (arg) @@ -741,35 +553,25 @@ I was using company, but I think it might've been causing issues with `awk-mode` (bind-key "C-a" #'my/smarter-move-beginning-of-line) - - ## Delete the selection when typing (delete-selection-mode 1) - - ## Clipboard (cuss save-interprogram-paste-before-kill t) - - ## Tabs & Spaces (cuss indent-tabs-mode nil) (cuss sentence-end-double-space t) - - # Programming - - ## Git (use-package magit @@ -800,15 +602,11 @@ I was using company, but I think it might've been causing issues with `awk-mode` (forge-owned-accounts '(("duckwork")))) - - ## Code display (add-hook 'prog-mode-hook #'prettify-symbols-mode) - - ### Parentheses (cuss show-paren-style 'mixed) @@ -827,8 +625,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (prog-mode . rainbow-delimiters-mode)) - - ## Line numbers (add-hook 'prog-mode-hook @@ -838,13 +634,9 @@ I was using company, but I think it might've been causing issues with `awk-mode` #'linum-mode)) - - ## Languages - - ### Shell (use-package shfmt @@ -857,8 +649,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (use-package fish-mode) - - ### Lua (use-package lua-mode @@ -866,16 +656,12 @@ I was using company, but I think it might've been causing issues with `awk-mode` :interpreter "lua") - - ### Fennel (use-package fennel-mode :mode "\\.fnl\\'") - - ### Web (use-package web-mode @@ -889,20 +675,14 @@ I was using company, but I think it might've been causing issues with `awk-mode` ("\\.js\\'" . web-mode))) - - ### SSH config (use-package ssh-config-mode) - - # Writing - - ## Word count (use-package wc-mode @@ -912,8 +692,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (text-mode . wc-mode)) - - ## Visual fill column (use-package visual-fill-column @@ -928,8 +706,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (org-mode . visual-fill-column-mode)) - - ## Mixed-pitch (use-package mixed-pitch @@ -937,8 +713,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (text-mode . mixed-pitch-mode)) - - ## Org mode (use-package org @@ -956,13 +730,9 @@ I was using company, but I think it might've been causing issues with `awk-mode` (org-mode . org-superstar-mode)) - - # Applications - - ## Gemini & Gopher (use-package elpher @@ -990,8 +760,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` :repo "https://git.sr.ht/~acdw/post-to-gemlog-blue.el")) - - ## Pastebin (use-package 0x0 @@ -999,8 +767,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (0x0-default-service 'ttm)) - - ## Gnus (cuss gnus-select-method @@ -1014,8 +780,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` '((nntp "news.gwene.org"))) - - ## Nov.el: read Ebooks (use-package nov @@ -1027,8 +791,6 @@ I was using company, but I think it might've been causing issues with `awk-mode` (nov-mode . visual-fill-column-mode)) - - # Machine-specific configurations (cond diff --git a/config.org b/config.org index 24c1e76..81f59fe 100644 --- a/config.org +++ b/config.org @@ -2,6 +2,7 @@ #+AUTHOR: Case Duckworth #+BABEL: :cache yes #+PROPERTY: header-args :tangle init.el +#+OPTIONS: toc:nil #+BANKRUPTCY_COUNT: 1 * Preamble -- cgit 1.4.1-21-gabe81