Commit Graph

580 Commits

Author SHA1 Message Date
Case Duckworth
488d0310e5 Add mastodon.el
Doesn't work right now, but that's my fault.
2021-05-28 22:42:59 -05:00
Case Duckworth
c835af64fd Add erc-hl-nicks 2021-05-28 22:42:53 -05:00
Case Duckworth
a108cfa9cc Remove comment 2021-05-28 22:42:48 -05:00
Case Duckworth
7b3cafc04b Add (setup... forms to imenu in elisp 2021-05-28 22:42:24 -05:00
Case Duckworth
89513fb0b8 Require auth-source 2021-05-28 22:42:14 -05:00
Case Duckworth
8d91bb02ce Setup imenu-anywhere 2021-05-28 20:51:32 -05:00
Case Duckworth
0523d84477 Setup epithet 2021-05-28 20:51:21 -05:00
Case Duckworth
7c7c6e0d3a Use repeat-mode on > emacs 28 2021-05-28 20:51:07 -05:00
Case Duckworth
db1eb2d7b4 Change frame-title-format 2021-05-28 20:50:58 -05:00
Case Duckworth
1ac673c763 Change flyspell-start behavior 2021-05-28 20:50:45 -05:00
Case Duckworth
8fd98de300 Add eshell last argument
https://old.reddit.com/r/emacs/comments/nlefvx/weekly_tips_and_tricks/gzpng5o/
2021-05-28 20:47:58 -05:00
Case Duckworth
a712b76ae9 Move defun into hook definition 2021-05-28 20:45:53 -05:00
Case Duckworth
bda5b2538f Fix mode-line flashing
Thanks, doom-themes!
2021-05-28 07:31:53 -05:00
Case Duckworth
2e0bebddc6 Merge 2021-05-27 12:53:37 -05:00
Case Duckworth
0acf0a28d7 Change C-z binds to C-c and remove leader 2021-05-27 12:52:12 -05:00
Case Duckworth
6124bf0ef7 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-27 08:13:46 -05:00
Case Duckworth
26602a1c16 Customize ibuffer filters 2021-05-27 08:13:14 -05:00
Case Duckworth
fda35b47f1 Add vuiet 2021-05-27 08:13:08 -05:00
Case Duckworth
8dfab51df9 Fix a weird error with straight-use-package
Description:

With the (or (ignore-errors ...) (progn ...)) form, `:straight' threw an error
/only/ with `avy'.  I couldn't figure out what the error was by re-evaluating
or changing it to just throw straight's error or anything, and
straight-use-package always returned t.  However, changing the form to the
simpler (straight-use-package) just ... works.  So I have no idea what the
matter might be.

I realized that I made the :straight form more complicated to begin with
because I was installing a lot of different packages and they were all over the
place, so I wanted to know that it failed sooner rather than later, but still
load the rest of my init file.  Now that my config is more stable, I feel okay
taking the extra stuff out of the form.
2021-05-26 17:29:24 -05:00
Case Duckworth
9d702afab8 Change eval-after-load to with-eval-after-load
idk, I like the macro better
2021-05-26 17:28:04 -05:00
Case Duckworth
37841b08a8 Fix erc-common-server-suffixes 2021-05-26 15:10:07 -05:00
Case Duckworth
08285aabb9 Tweak ERC 2021-05-26 08:28:24 -05:00
Case Duckworth
9a35749a3e Add `xr' 2021-05-26 07:32:36 -05:00
Case Duckworth
76948586ed Keep configuring erc
Turns out ... I'm /really/ using it :P
2021-05-25 23:49:52 -05:00
Case Duckworth
f13ddf9fc8 Add most important #bread channel
See note
2021-05-25 17:37:53 -05:00
Case Duckworth
074c1afd6d Advise `show-paren-function' to not do anything in erc-mode 2021-05-25 17:36:37 -05:00
Case Duckworth
817277405a Add moar channels 2021-05-25 13:45:12 -05:00
Case Duckworth
9eb8e7a3dc Move acdw/add-button-url-regexp-protocol 2021-05-25 12:54:42 -05:00
Case Duckworth
0fa1f6ce4f Formatting ... and stuff
Whatever.
2021-05-25 12:28:32 -05:00
Case Duckworth
f148e93b0e Use escape to quit in graphical sessions 2021-05-25 08:03:06 -05:00
Case Duckworth
a32a3832cc Fix new window handling with browse-url 2021-05-24 21:40:51 -05:00
Case Duckworth
67c4eb7fe7 Add gemini to browse-url-button-regexp
Also I overengineered some other stuff around that.
2021-05-24 18:00:23 -05:00
Case Duckworth
1a20d6329e Further customize ERC
I also added acdw-erc.el.
2021-05-24 17:08:32 -05:00
Case Duckworth
ebf034c010 Reindent 2021-05-23 20:24:00 -05:00
Case Duckworth
735a6efc63 Remove crux-reopen-as-root-mode 2021-05-23 20:23:37 -05:00
Case Duckworth
c1e9d32638 Further customize ibuffer
- sort groups
- hide empty groups
- use expert mode
2021-05-22 16:44:27 -05:00
Case Duckworth
f784434f39 Add keybind for `flyspell-start'
I'm kind of rethinking my whole 'leader' key stuff.  Like, maybe C-z should be
the leader for "application"-type things, but C-c chould be the leader for
other stuff (since that's the predefined leader for user configuration stuff).
2021-05-22 16:43:23 -05:00
Case Duckworth
7716dc5e5f Sort options
Just in the one spot.  I should do like, all of em.
2021-05-22 16:42:52 -05:00
Case Duckworth
2c90c19ac1 Turn off auto-fill-mode in gemini-mode 2021-05-22 16:42:05 -05:00
Case Duckworth
a1a9f77c24 Change winum position in mode-line 2021-05-22 16:41:42 -05:00
Case Duckworth
466fa4e93e Configure ERC
I'm not sure how much I'm going to use it, but it's done now.
2021-05-22 16:41:10 -05:00
Case Duckworth
03abc9caf4 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-21 17:58:53 -05:00
Case Duckworth
3ad0e05b13 Change branch of gemini-write back to og
... also add elpher to ibuffer
2021-05-21 17:58:18 -05:00
Case Duckworth
343cdc108a Change org-ellipsis
Trying to get a character that works in most character encodings
2021-05-21 11:09:18 -05:00
Case Duckworth
4e945fa7bc Add `comment-or-uncomment-sexp'
from https://endlessparentheses.com/a-comment-or-uncomment-sexp-command.html
2021-05-21 11:08:41 -05:00
Case Duckworth
dea4bff7f4 Fix arity of consult-sensible-* functions
... also fix the type of the equality function.
2021-05-21 11:01:46 -05:00
Case Duckworth
a5fe45e8db Comment out `hook-defun'
The only plus `hook-defun' has over (add-hook 'hook (defun name ... )) is the
ability to add the same function to multiple hooks at once.  My init files
don't use that functionality, so I've retired this macro for now.

I'm thinking, honestly, that if a function is used in more than one hook, it
should be defined separately and added to each hook in turn ... you know, like
Emacs does it by default.
2021-05-21 10:57:58 -05:00
Case Duckworth
df1f255780 Adapt to deprecated variable 2021-05-21 08:34:52 -05:00
Case Duckworth
2edbc01d87 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-19 22:03:24 -05:00
Case Duckworth
92c8fd1a1f Fix typo 2021-05-19 22:01:56 -05:00
Case Duckworth
4a305b8e5d Add org-contrib
As of ... 9.5(?), it's split into a separate package
2021-05-19 22:01:30 -05:00
Case Duckworth
93026316a5 Further configure eww/web browsing 2021-05-19 22:01:20 -05:00
Case Duckworth
19e1ce4c6a Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-19 17:07:36 -05:00
Case Duckworth
ccf03a4be3 Change definition of `acdw-org/count-words'
(I renamed it from `acdw-org/word-count'.)

It's still too slow for use in the modeline.  So I have work to do still...
2021-05-19 17:06:32 -05:00
Case Duckworth
66d0e6999c Rewrite acdw-modeline/word-count to show region counts 2021-05-19 15:28:58 -05:00
Case Duckworth
bb07f08067 Configure shell-command
From http://www.nextpoint.se/?p=864
2021-05-19 12:55:12 -05:00
Case Duckworth
f8198ee814 Add Firefox to exec-path /before/ checking if it's available 2021-05-19 12:41:16 -05:00
Case Duckworth
bdc2c3c40e Remove unused variables
IDK
2021-05-19 12:40:53 -05:00
Case Duckworth
33632cc283 Add `eshell-pop-or-quit' for easier keybinding 2021-05-19 12:40:35 -05:00
Case Duckworth
14f6bc67ff Start flyspell automatically at home
Free up the C-z s key for shell
2021-05-19 12:39:43 -05:00
Case Duckworth
9c6be2e953 Setup winum keys after frame is setup
I should probably change this to `after-make-frame-functions' instead...
2021-05-19 12:38:51 -05:00
Case Duckworth
32959ca977 Add variable-pitch-mode in Org and Info 2021-05-19 12:37:57 -05:00
Case Duckworth
3eeb9fb1a1 Change `browse-url-browser-function' to alist 2021-05-19 10:14:02 -05:00
Case Duckworth
5b978fb0e3 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-12 19:31:14 -05:00
Case Duckworth
b06a7305c1 Change common-lisp-ide -> sly
Since I just use sly
2021-05-12 19:30:24 -05:00
Case Duckworth
2341f0bac3 Save more variables 2021-05-12 16:42:36 -05:00
Case Duckworth
92ff615f9c Unbind <Help> h 2021-05-12 16:42:18 -05:00
Case Duckworth
05ea83385b Make recentf dired-aware 2021-05-12 16:41:58 -05:00
Case Duckworth
f3332efb77 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-11 09:46:47 -05:00
Case Duckworth
2bf518fab7 Add org-mode' to stupid-modes' for `dumb-auto-format'
To keep hanging list items from indenting at save.
2021-05-11 09:45:42 -05:00
Case Duckworth
b727d4f684 Add `acdw/system' macro
`acdw/system' eases configuration -- it returns the system when called with no
arguments, acts as a test with one argument, or as a `pcase' with more than one
argument.
2021-05-11 09:44:04 -05:00
Case Duckworth
0f1fe1c098 Refactor CL IDE binding code
This is a prelude to writing 'acdw-cl.el', since the two IDEs (that's what I'm
calling them) each have a known structure.  So I'm going to write a little
library to abstract that out.
2021-05-06 17:48:20 -05:00
Case Duckworth
a117f50463 File stuff ... but in init.el
Oop
2021-05-05 17:56:31 -05:00
Case Duckworth
3ffbf503fe Correct after-load file name
Oops, should've tested before pushing
2021-05-05 17:27:01 -05:00
Case Duckworth
11f2782f2b Correctly configure sly and slime keybindings
Had to load them after the files.
2021-05-05 17:22:33 -05:00
Case Duckworth
1f5beecd45 Add whitespace-cleanup-mode 2021-05-05 12:34:44 -05:00
Case Duckworth
d59ff1f811 Remove complicated which-key delay 2021-05-05 12:34:21 -05:00
Case Duckworth
47304ba506 Don't enable a mode just to disable it later 2021-05-05 12:33:52 -05:00
Case Duckworth
64ce556a57 Add section for ibuffer 2021-05-05 12:33:20 -05:00
Case Duckworth
fb4d9d85dc Change binding for reb-quit
M-q is shadowed by paredit, I think.
2021-05-04 23:45:38 -05:00
Case Duckworth
78a5be9f2c Add paredit-mode to reb-mode 2021-05-04 23:45:30 -05:00
Case Duckworth
d4f2c1fdb7 Replace fly-make-mode with flymake-mode-except
I didn't want flymake-mode to automatically fire in emacs-lisp-mode.  I should
probably be better served by either (a) getting my Emacs config files up to
snuff or (b) adding a better test to decide whether to flymake them.
2021-05-04 23:44:18 -05:00
Case Duckworth
4c8d004ea8 Add flymake-mode to prog-mode-hook 2021-05-04 23:28:35 -05:00
Case Duckworth
4480fab9e8 Change function name 2021-05-04 23:28:18 -05:00
Case Duckworth
6136a637ae Add package-lint 2021-05-04 23:28:09 -05:00
Case Duckworth
5ed2688149 Add unfocused 2021-05-04 23:25:35 -05:00
Case Duckworth
7372de3355 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-04 20:02:17 -05:00
Case Duckworth
b18d64c2ff Change which-key setup 2021-05-04 19:58:30 -05:00
Case Duckworth
095fbc7c94 Don't start idle-require-mode 2021-05-04 19:58:22 -05:00
Case Duckworth
9e0e42554e Remap C-w to backward-kill-word if the region isn't active 2021-05-04 17:27:36 -05:00
Case Duckworth
388dc3c704 Remap C-h to DEL 2021-05-04 17:27:09 -05:00
Case Duckworth
91a22256da Remove `idle-require'
It wasn't ... sparking joy.
2021-05-04 12:23:21 -05:00
Case Duckworth
a4c3a6d3b9 Add clhs and move common-lisp-ide to be in alpha order 2021-05-04 09:58:16 -05:00
Case Duckworth
2166e0f323 Go back to OG beginend
I think the author fixed the issue.
2021-05-04 09:57:43 -05:00
Case Duckworth
a274ec49c5 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-04 09:11:17 -05:00
Case Duckworth
7bee3489ef Add slime-repl-return-at-end
Get the benefits of paredit with easy keys in the REPL!
2021-05-04 09:10:36 -05:00
Case Duckworth
fa189fa1b6 Only update packages with C-u 2021-05-03 21:31:29 -05:00
Case Duckworth
ddda04e26f Add `winum'
I only rebind winum-select-window-* in graphical buffers because that's
apparently the only place where C-[n] is the same as M-[n].
2021-05-03 15:14:23 -05:00
Case Duckworth
cadba81fbf Add `idle-require'
Not sure how useful it'll be, but hopefully it'll help make some things a
little faster...
2021-05-03 15:12:14 -05:00
Case Duckworth
666e7c53b4 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-05-02 14:15:17 -05:00
Case Duckworth
f5d4b71b78 Add ledger-mode 2021-05-02 14:15:10 -05:00
Case Duckworth
14140211b1 Switch to SLY for Lisp REPL
I've kept SLIME's config around, in case I need it -- which REPL is loaded
depends on the `acdw/cl-ide' variable.
2021-05-01 15:22:49 -05:00
Case Duckworth
8d60190847 Tweak which-key idle timing
It does seem as though `which-key-show-early-on-C-h' isn't respected here, but
I'm not sure exactly what the issue is.  Could be the
`which-key-setup-minibuffer'... more research is needed.
2021-05-01 15:20:01 -05:00
Case Duckworth
74aa9c9e3a Customize fringes
Still to think about: changing the `fringe' face.  Do I want it another color?
Do I even need any buffer boundaries?  Hm....
2021-04-30 17:36:25 -05:00
Case Duckworth
b723eb988f Move emoji font configuration to the initial frame setup function 2021-04-30 12:50:33 -05:00
Case Duckworth
dfab28d79f Add the text scale to the modeline 2021-04-30 12:49:58 -05:00
Case Duckworth
8e36acc07d Change which-key popup delay
I found out about `which-key-delay-functions', which lets me tweak the delay
depending on what the key sequence is.  I set up a function to show bindings in
my "leader map" immediately, but to delay for a bit on everything else.

I also put which-key stuff in the minibuffer -- I think it looks pretty good.
2021-04-30 11:38:24 -05:00
Case Duckworth
07d3f8a3ee Change some defun'+advice-add' to `define-advice' 2021-04-29 19:47:54 -05:00
Case Duckworth
a8fca8b947 Change upgrade-packages-and-restart to emacs-upgrade 2021-04-29 17:55:36 -05:00
Case Duckworth
407771183e Massively refactor
- Redefine as much as possible as `setup' forms
- Reorganize into "Setup", "Basics", and "Packages" sections
- Within each section, alphabetize sexps
- Also (mostly) alphabetize acdw- files
- (Not the ones that are almost completely others' code)
- Sidebar: Why is this not a thing in elisp!?  Should write a function
- Break karthink's thing into another library `acdw-re'
- Add a function to `acdw': `acdw/find-emacs-source'
- Should refactor that to better find the source

I think everything looks much more better now!
2021-04-29 12:29:03 -05:00
Case Duckworth
27ae0a2ab8 Replace anzu with karthink's re-builder glue 2021-04-29 10:01:32 -05:00
Case Duckworth
51a3ca6dec Use my fork of `beginend'
I don't know why, but (setf (point) (point-min)) doesn't work (see the
`org-mode' function).  I changed it to the more ... older(?)
version, (goto-char (point-min)).
2021-04-28 16:51:32 -05:00
Case Duckworth
a3bef6eaef Add `restart-emacs' 2021-04-28 15:48:58 -05:00
Case Duckworth
e885e267ce Automatically 'view' read-only buffers, and 'read' view buffers 2021-04-28 15:48:37 -05:00
Case Duckworth
7514b598cf Advise `eval-region' to pulse
Just like SLIME.  I also rewrote acdw/eval-region-or-buffer a bit.
2021-04-28 15:28:00 -05:00
Case Duckworth
06409e4bd1 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-04-27 13:51:42 -05:00
Case Duckworth
78d2f6d3b6 Add a leader key for elpher-bookmarks; add gemini-write 2021-04-27 13:50:09 -05:00
Case Duckworth
7a62ff0a49 Add gnus leader mapping 2021-04-27 12:58:26 -05:00
Case Duckworth
582fefbf46 Improve emoji font selection
Now, I loop through a list of candidates and append all that are available to
the symbol fontset.
2021-04-27 11:35:40 -05:00
Case Duckworth
0298999997 Change emacs-lisp eval bindings
Try to emulate slime a little more.  I really like the flashy things, but IDK
how to get that with elisp yet.
2021-04-27 11:35:02 -05:00
Case Duckworth
0013a13d79 Add check for server on startup
Why the hell not?!
2021-04-26 15:29:51 -05:00
Case Duckworth
b58676daf8 Unbind M-s from paredit-mode-map
It shadows the (slightly more useful (for me (for now))) Isearch map(s).
2021-04-26 15:29:16 -05:00
Case Duckworth
ba19fdbc69 Comment out icomplete-mode
Sometimes it'd be called and the function turning it off wouldn't be, for some
reason.  Weird stuff.
2021-04-26 15:28:36 -05:00
Case Duckworth
1032b2cbd9 Change :mode' to :file-match'
Turns out setup.el has a local macro to deal with setting up modes.
2021-04-26 15:27:50 -05:00
Case Duckworth
476f696af8 Add `acdw/insert-iso-date'
Like `crux-insert-date', but I use ISO 8601.
2021-04-26 15:26:32 -05:00
Case Duckworth
c193fccb3c Fix dired-open 2021-04-24 23:23:43 -05:00
Case Duckworth
cc8bc8bb21 Switch to pdf-tools fork 2021-04-24 23:23:32 -05:00
Case Duckworth
bfabfcf70e Fix bindings in paredit-mode-modes 2021-04-24 23:23:15 -05:00
Case Duckworth
d407e9de54 Add <F12> bind to toggle eshell 2021-04-22 17:15:32 -05:00
Case Duckworth
7786e0ec4a Add a leader bind to kill emacs 2021-04-22 12:53:19 -05:00
Case Duckworth
6f3e287d49 Setup `dired' better
Instead of resetting `setup-*' in each of dired's dependent packages, just
install them using `:straight' and configure them in blocks.
2021-04-22 11:55:47 -05:00
Case Duckworth
ae355342c9 Add dired-git-info 2021-04-22 11:51:34 -05:00
Case Duckworth
60f8d3f903 Open files better, depending on system 2021-04-22 11:51:03 -05:00
Case Duckworth
4ff4537794 Bail out of `setup' if straight fails 2021-04-22 11:50:19 -05:00
Case Duckworth
62dd9dcaff Install w32-browser at work 2021-04-22 11:11:39 -05:00
Case Duckworth
8e49378b47 Move lexical-binding setting into a hook
*scratch* still doesn't apply the (setq-default lexical-binding t) form, but
the advice I'd been giving `setup' broke the documentation generator function.
So I just added lexical-binding to a hook when opening an emacs-lisp-mode
buffer.

Will this bite me later?  Possibly.  But I'll deal with that then.  The worst
that could happen is that I'd write another function, `setup-test' or
something, that'd apply lexical-binding and then run `setup'.  Or I could just
set lexical-binding to t manually.  Whatever.
2021-04-22 10:20:25 -05:00
Case Duckworth
152daf82ef Add macro `with-message' 2021-04-21 17:54:29 -05:00
Case Duckworth
c478ecae3c Setup emoji fonts!
This is a much better alternative than the old crusty unicode-fonts package.
2021-04-21 17:27:45 -05:00
Case Duckworth
0175f1c0e9 Add messages in `acdw/eval-region-or-buffer'
Probably should write a macro, `with-message' or something.
2021-04-21 17:22:54 -05:00
Case Duckworth
fda8192c81 Add keybinding for crux-transpose-windows 2021-04-21 11:50:34 -05:00
Case Duckworth
b51bf89f7a Add advice to kill lines and join 2021-04-21 11:50:18 -05:00
Case Duckworth
71d2664f23 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-04-21 09:38:27 -05:00
Case Duckworth
180fdac959 Fix boundp check in eshell-setup 2021-04-21 09:36:30 -05:00
Case Duckworth
c4a38fed1e Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-04-20 17:59:49 -05:00
Case Duckworth
82c75698ec Add `electric-cursor'
Mine own package!
2021-04-20 17:59:24 -05:00
Case Duckworth
76a464c7cf Fix some dumbness 2021-04-20 17:59:09 -05:00
Case Duckworth
193620eb92 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-04-20 16:26:34 -05:00
Case Duckworth
ec8f21a252 Use consult for completion-in-region 2021-04-20 16:25:31 -05:00
Case Duckworth
37e80f75e4 Only grow mini-windows, instead of resizing intensely 2021-04-20 16:24:59 -05:00
Case Duckworth
65f22f2d22 Autoload elpher-go 2021-04-20 16:24:42 -05:00