1
0
Fork 0
Commit graph

111 commits

Author SHA1 Message Date
96d0375ce6 [oni-core] Store clipboard contents into kill ring before replacing 2023-08-06 00:19:18 -07:00
867ec0200b [oni-core] Change the vertico keybindings to be a bit more ivy-like 2023-08-06 00:15:26 -07:00
d934aef413 [oni-core] Only show relevant commands for the current mode 2023-08-06 00:11:17 -07:00
e7acc034ee [oni-core] Make the minibuffer prompt intangible 2023-08-06 00:04:05 -07:00
4d525286b0 [oni-core] Add ‘orderless-initialism’ to ‘orderless-matching-styles’ 2023-08-05 23:58:20 -07:00
072934a99e [oni-core] Disable previews for ‘consult-bookmark’ 2023-07-26 00:35:49 -07:00
b64b381871 [oni-core] Remove unnecessary code
When Emacs is first started ‘treesit-extra-load-path’ is empty and any
‘(treesit-language-available-p ...)’ will return nil. But calling, for example,
‘bash-ts-mode’ will work if the package is installed in Guix and will fill the
variable.
2023-07-16 23:21:16 -07:00
6c97f13595 [oni-core] Add settings for tree-sitter
- Set the ‘treesit-extra-load-path’ to the value of ‘TREE_SITTER_GRAMMAR_PATH’.
  Emacs doesn't seem to do this automatically, but Guix sets that variable when
  grammars get installed.

- Add ‘bash-ts-mode’ to the ‘interpreter-mode-alist’. In his article[1] about
  tree sitter support in Emacs Mickey Petersen mentions that it's best to use
  ‘major-mode-remap-alist’, however in his example he remaps ‘bash-mode’ to
  ‘bash-ts-mode’, but there is no ‘bash-mode’. Setting the
  ‘interpreter-mode-alist’ like this still works.

[1]: https://www.masteringemacs.org/article/how-to-get-started-tree-sitter
2023-07-15 01:08:26 -07:00
dfc257cd8c [oni-core] Remove tips display from initial scratch message
This is now displayed on my Inkplate.
2023-07-08 00:39:38 -07:00
de5e5ff047 [oni-core] Enable ‘isearch-lazy-count’ to show matches 2023-07-06 16:48:57 -07:00
de53fb6f1c [oni-core] Add key to insert lambda 2023-06-15 23:34:57 -07:00
09615b953a [oni-core] Require ‘consult’ when byte-compiling ‘oni-core’
When everything is interpreted it all works fine because ‘consult’ is loaded
before the ‘with-eval-after-load’ part is run, but when byte compiling the byte
compiler doesn't know that ‘consult-customize’ is a macro unless ‘consult’ is
loaded, which it isn't when Guix compiles it.

When it's byte-compiled as if it's a function ‘consult-buffer’ is assumed to be
a variable that's passed in, so I'm guessing it's trying to dereference it first
before passing it on to a non-existent function? But of course ‘consult-buffer’
is only a function (Emacs Lisp is a Lisp-2 after all), so it fails, but only
when byte compiled (and even only when byte-compiled in a clean environment
where there are no packages loaded that aren't explicity said to be).

Hopefully this fixes my issue with being unable to switch buffers until I
explicitly load ‘consult’.
2023-05-25 15:29:42 -07:00
23ee5ed080 Revert "[oni-core] Call ‘consult-customize’ from the top-level"
This reverts commit 961651e575.

It works in an interactive session, but still fails while starting up. Probably
has to do with autoloads not having finished loading yet, perhaps?
2023-05-25 14:09:45 -07:00
961651e575 [oni-core] Call ‘consult-customize’ from the top-level
This macro seems to work fine when expanded at run-time even when ‘consult’
hasn't been loaded, but it doesn't work after it's been byte-compiled... Perhaps
putting it in the top-level will help. I'm wondering if somehow the byte
compiler closes over a reference to ‘consult-buffer’ during compilation that's
not available when it executes?
2023-05-25 13:49:01 -07:00
434a811056 [oni-core] Put the call to ‘consult-customize’ in separate function
I'm having some issues with my ‘consult-buffer’ setup and I'm hoping that
putting this in its own function will help me debug the issue, or at least show
me if this is part of the issue or not.
2023-05-24 23:57:26 -07:00
df67fdad8b [oni-core] Add window management keybindings
The various ‘M-<NUMBER>’ keybindings are all also bound to ‘C-<NUMBER>’, no need
to have both, and using ‘M-0’ is a lot easier than using ‘C-x 0’. This also
replaces the old keybindings with a message that tells me to use the new
keybindings instead to help me learn.
2023-05-24 23:54:50 -07:00
020f19fcbc [oni-core] Add keybinding to select which window to use as “other” 2023-05-24 23:51:09 -07:00
8eb16a8db6 [oni-core] Add mini-frame configuration 2023-04-16 00:30:50 -07:00
7e581611fb [oni-core] Add function to debug more hidden errors
https://gist.github.com/jdtsmith/1fbcacfe677d74bbe510aec80ac0050c
2023-04-15 20:45:15 -07:00
3c75681b25 [oni-core] Disable previews for ‘consult-buffer’ 2023-04-15 20:44:57 -07:00
aa2444374b Turn off autoloading oni-ivy
For some reason projectile loads ivy, which tries to load oni-ivy, which I don't
use at the moment.
2023-04-01 23:01:35 -07:00
6185c26d51 [oni-core] Fix related files function 2023-03-30 22:28:24 -07:00
af7ff9343a [oni-core] Fix function names 2023-03-20 22:28:06 -07:00
6ef9c0d59b [oni-coree] Silence native compilation warnings 2023-01-24 10:05:31 -08:00
5d7b20598b [oni-core] Sort keybindings, add ace window keybindingss 2023-01-24 10:04:39 -08:00
d0420ae5e3 [oni-core] Add related-files[1] to consult-buffer[2]
[1]: https://github.com/DamienCassou/related-files
[2]: https://github.com/minad/consult
2022-12-13 07:14:06 -08:00
5f7a6b8ddd Give some keybindings (hopefully) more descriptive names
This style of keybinding helps ‘which-key’[1] to display a better name for the
command.

[1]: https://github.com/justbur/emacs-which-key
2022-12-13 07:11:36 -08:00
6793848975 [oni-core] Show a random tip in my initial scratch message
These tips come from “Pragmatic Thinking and Learning: Refactor Your Wetware” by
Andy Hunt[1]

[1]: https://pragprog.com/titles/ahptl/pragmatic-thinking-and-learning/
2022-11-13 23:04:21 -08:00
fac5c04ce5 [oni-core] Remove duplicate entries from history 2022-11-13 16:58:38 -08:00
67c77bb277 [oni-core] Remove the dashboard package
I barely ever look at it.
2022-11-13 16:55:49 -08:00
8525e5e61c [oni-core] Remove agenda items from dashboard
I don't use the dashboard to see my tasks.
2022-11-08 23:30:12 -08:00
47593186ea [oni-core] Set some variables for the built-in ‘calendar’ package 2022-11-02 01:49:35 -07:00
d8158ea7ee Add oni-emms module 2022-08-17 14:50:25 -07:00
a10f099d32 [oni-core] Load notmuch config 2022-05-26 23:12:37 -07:00
a8f4ffec6a [oni-core] Put cygwin at the end of the exec-path list on Windows
There are some programs that live in both that and some other directories that
I've added on Windows. This makes sure that the cygwin ones don't overwrite
everything else, since usually I use different versions like MSYS2.
2022-03-01 23:54:18 -08:00
3b29e9799f [oni-core] Remove counsel (and ivy) and replace with vertico
This also brings in marginalia, orderless, consult, and embark.

I've been reading about these projects for a while and after some looking around
it seems like these are at the very least interesting, I'm trying it out for a
while.
2022-03-01 23:52:56 -08:00
946cb1a3fd [oni-core] Load the ‘generic-x’ library
This library defines a few useful generic major modes like
‘etc-fstab-generic-mode’, and ‘java-properties-generic-mode’.
2022-02-28 00:57:24 -08:00
5155b14a08 [oni-core] Bump version 2022-02-24 01:56:18 -08:00
04bc3f3b7e [oni-core] Go to the end of the line if a comment isn't found 2022-02-24 01:55:05 -08:00
ace4d24a7e [oni-core] Turn on ‘savehist-mode’ and ‘save-place-mode’ 2022-02-24 01:54:34 -08:00
0b640ec28e [oni-core] Replace ‘(upcase|downcase|capitalize)-word’ with dwim
The “Do What I Mean” variants will either work on a region or a word, not just a
word.
2022-02-08 09:44:59 -08:00
a62f26073d [oni-core] Disable the ‘C-x o’ keybinding
I'm so used to using it that I keep forgetting to use ‘M-o’ for ‘ace-window’
instead. By disabling this keybinding I can train myself to use ‘ace-window’.
2022-01-06 09:16:47 -08:00
b08344eb0a Add ‘ace-window’ dependency and keybind 2021-12-07 20:48:18 -08:00
cfa0179053 Remove all self-loading autoload cookies
The big downside of usuing these cookies to inject my configuration into the
loading of a package is that it means that I can't load that package without my
configuration anymore. This means that when I start ‘emacs -Q’ and then call
‘package-initialize’ it'll load my configuration as well. This makes debugging
things very difficult.
2021-11-23 00:38:09 -08:00
3247273c69 [oni-core] Don't fail when either ‘oni-c’ or ‘oni-cpp’ doesn't load
Either or neither can be installed when ‘cc-mode’ is loaded, but it shouldn't be
an error when one isn't.
2021-11-16 20:28:56 -08:00
b3965ea473 [oni-core] Add settings for spell checking
- Inhibit the use of the ’ character in case a ' should be used so that spell
  checking programs don't get confused.

- Explicitly use the ‘hunspell’ program to perform spell checking.
2021-11-10 21:32:14 -08:00
1a84c02517
[oni-diff-hl] Remove autoload cookie, load from ‘oni-core’ 2021-09-21 23:29:06 -07:00
8ae902ac62
[oni-css] Remove autoload cookie, load from ‘oni-core’ 2021-09-20 20:28:32 -07:00
cfd9384374
[oni-csharp] Remove autoload cookie, load from ‘oni-core’ 2021-09-20 20:18:47 -07:00
3568fc8d05
[oni-cpp] Remove autoload cookie, load from ‘oni-core’ 2021-09-20 20:06:46 -07:00