Commit Graph

90 Commits

Author SHA1 Message Date
Case Duckworth 41ffc15191 Write function to require private.el 2021-06-06 23:27:01 -05:00
Case Duckworth afa3013927 Add unfill-region
TODO: unfill-buffer, etc.

Possibly a whole 'filler.el' ...
2021-06-02 23:38:43 -05:00
Case Duckworth 71c4d37813 Remove commented block 2021-06-02 23:38:37 -05:00
Case Duckworth 6fd355d978 Add ORG functionality 2021-06-01 22:30:05 -05:00
Case Duckworth c698dc9869 Move things from init.el to acdw.el and acdw-eshell.el
Probably should've been 2 commits...
2021-05-30 00:07:02 -05:00
Case Duckworth bda5b2538f Fix mode-line flashing
Thanks, doom-themes!
2021-05-28 07:31:53 -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 bba5214c34 Fix `acdw/build-button-url-regexp' to rebuild on call
`rx' builds the regexp at compile time -- I need it to be built at runtime.
`rx-to-string' takes care of that for me.
2021-05-25 17:35:40 -05:00
Case Duckworth 0fa1f6ce4f Formatting ... and stuff
Whatever.
2021-05-25 12:28:32 -05:00
Case Duckworth fab40a3bd9 Fix typo 2021-05-25 08:03:18 -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 d241221046 Remove modeline customization in acdw/reading-mode 2021-05-24 17:07:21 -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 ec19fb5f78 Add `sort-sexps'
from unpackaged.el
2021-05-22 16:40: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 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 727ab389b9 Fix `acdw/system' argument parsing
`acdw/system' parsed arities of the form

(acdw/system (:home (do-thing)))

incorrectly: instead of expanding to (pcase acdw/system (:home (do-thing))),
it parsed to ... something else that tried to call `:home' as a function and
crapped out.  I've fixed that issue and clarified the `cond' clauses.
2021-05-21 10:45:58 -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 32959ca977 Add variable-pitch-mode in Org and Info 2021-05-19 12:37:57 -05:00
Case Duckworth 176e795a32 Add `acdw-org/word-count' 2021-05-13 18:00:16 -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 9e0e42554e Remap C-w to backward-kill-word if the region isn't active 2021-05-04 17:27:36 -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 0d73ec5192 Add `dos2unix'
Does the same thing (in general) as the dos2unix C program.  By which I mean,
it converts \r\n to \n in the buffer.  It doesn't do anything else.

... So it really doesn't do much of the same thing as dos2unix.
2021-05-01 15:24:43 -05:00
Case Duckworth 938f82f6ac Change the fringe face
"dim gray" looks good on both black and white.
2021-04-30 17:41:52 -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 64739e7e99 Break emacs-git-pull-config out of emacs-refresh
... and rename refresh-emacs to emacs-refresh ...
2021-04-29 17:21:05 -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 8b3af62cc9 Add prefix arg to pull ~/.emacs from git
I could probably do better things with the output and error buffers.  Whatever.
2021-04-27 15:35:42 -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 dcc7d643e2 Enhance `refresh-emacs'
- Enable `debug-on-error'
- Save all init files before sourcing them
2021-04-26 15:24:31 -05:00
Case Duckworth 87ffff0ac0 Also load files in .emacs.d/lisp when running `refresh-emacs' 2021-04-22 10:06:39 -05:00
Case Duckworth 32e2fba6da Fix wrong function calls
When I changed `unpackaged/org-element-descendent-of' to
`acdw-org/element-descendent-of' (honestly, to make it easier to see where the
definition of the function is), I didn't change all the references to that
function.
2021-04-22 09:59:31 -05:00
Case Duckworth 152daf82ef Add macro `with-message' 2021-04-21 17:54:29 -05:00
Case Duckworth 71d2664f23 Merge branch 'main' of https://tildegit.org/acdw/emacs 2021-04-21 09:38:27 -05:00
Case Duckworth 9dd7619d12 Fix typo 2021-04-21 09:38:08 -05:00
Case Duckworth 76a464c7cf Fix some dumbness 2021-04-20 17:59:09 -05:00
Case Duckworth 780f58dece Rename functions in acdw-org.el 2021-04-19 16:16:46 -05:00
Case Duckworth 2f35181b9a Tweak `org-table-copy-down'
Now <S-return> will do its regular thing /in/ a table, but will also work
/outside/ a table as a regular <return>.
2021-04-19 15:46:31 -05:00
Case Duckworth d057fde4ce Add `acdw/kill-a-buffer' and keybinding 2021-04-19 15:25:04 -05:00
Case Duckworth e5795d6bf4 Make `org-return-dwim' auto-fill-mode-aware
Added a block at the top of the function to call `auto-fill-function' if it's
enabled, and I changed the calls to `newline' to `insert "\n"`, due to
... something.  It was having issues figuring out that the new lines were list
items I think.

I also removed the message part in the middle of the function that I forgot to
remove before.
2021-04-14 17:06:59 -05:00
Case Duckworth 2632c85494 Change (insert "\n\n") -> (newline) 2021-04-13 18:00:01 -05:00
Case Duckworth a64c5ff869 `org-return-dwim': work in nested lists
`org-return-dwim' now ends a list on an empty nested list item.

See the comment for details.
2021-04-13 17:45:11 -05:00
Case Duckworth 758048eb57 Formatting etc.
This keeps happening :/
2021-04-13 17:44:52 -05:00
Case Duckworth 29bbc0faa6 Add a generate custom ids function for headings
From amitp.blogspot.com.
2021-04-13 17:43:39 -05:00