Commit graph

123 commits

Author SHA1 Message Date
William Carroll
1943c2a643 Lint wpc-lisp.el
Remove dead TODOs that are TODOne along with a few other strange text
artifacts.
2020-01-22 21:13:06 +00:00
William Carroll
397174ebd2 Support Common Lisp
After a bedazzling demonstration of Emacs + Common Lisp, I needed to download
Sly and `sbcl` and give it a try.
2020-01-22 21:13:06 +00:00
William Carroll
92f5773421 Consolidate Racket KBDs
Instead of three separate `general-define-key` statements consolidate all
three. I'm not sure I was aware of this feature of general when I originally
defined all three keybindings.
2020-01-22 21:13:06 +00:00
William Carroll
df7385af0d Support snippet for python function
Many of my other commonly used languages have a similar snippet as well.
2020-01-22 21:13:06 +00:00
William Carroll
b843e0f8f6 Remove opam-install variable and assertion
The `prelude/assert` for the existence of the `opam-install` directory was
failing.

I believe this assertion would have been failing sooner, but a bug in my
initialization was preventing Emacs from evaluating `wpc-ocaml.el`. It seems
that I removed whatever was jamming the initialization and as such, I uncovered
some more bugs.

Let this serve as a reminder that just because it hasn't bitten you yet, doesn't
mean that your software doesn't have a bug.
2020-01-22 21:13:06 +00:00
William Carroll
59be1ee981 Support today-{expected,actual}
"Everybody has a plan until they get punched in the mouth"
- Mike Tyson
2020-01-22 21:13:06 +00:00
William Carroll
3d6b521919 Ensure scrot.el initializes
- Adds scrot to init.el
- Moves the EXWM keybindings to keybindings.el
2020-01-22 21:13:05 +00:00
William Carroll
16fd606f91 Whitelist keybindings.el in init.el
Also tracking a TODO to consolidate all of my keybinding and keyboard related
modules.
2020-01-22 21:13:05 +00:00
William Carroll
d590fdae42 Debug fonts.el
Removing call to `fonts/fontify`: a function that no longer exists.
2020-01-22 21:13:05 +00:00
William Carroll
3e3ba41c5d Bind chrome/browse to EXWM keybinding
I'm hoping to use `chrome/browse` more often!
2020-01-22 21:13:05 +00:00
William Carroll
84eeb374b7 Debug keybindings.el
Change `keybindings/` -> `keybinding/`. Whoops...
2020-01-22 21:13:05 +00:00
William Carroll
b4a6551dd5 Drop support for evil-leader
Preferring to use the `general` package for defining leader-prefixed keybindings
than `evil-leader`.

This TODO has existed for quite awhile, so I'm pleased to finish it!

During the cleanup, I deleted some keybindings that I no longer used.
2020-01-22 21:13:05 +00:00
William Carroll
40742c612a Track TODO for extending alist/new
See TODO for more information.
2020-01-22 21:13:05 +00:00
William Carroll
64cf4ac920 Begin supporting list/index
This currently doesn't work and as such is a work-in-progress.
2020-01-22 21:13:05 +00:00
William Carroll
0c59df8327 Add tests for vector.el
Adds a few tests for vector{set,set!} functions.
2020-01-22 21:13:05 +00:00
William Carroll
ddd5d3a7a0 Drop support for ORG_DIRECTORY in envrc
When Emacs starts it's called from xsessionrc.shared, which is called outside of
direnv's .envrc scope. Because of this variables defined therein, like
ORG_DIRECTORY, are undefined and prevent Emacs from initializing.

I'm hard-coding the `org-directory` variable for now and removing references to
`(getenv "ORG_DIRECTORY")`.
2020-01-22 21:13:05 +00:00
William Carroll
8a657fff7f Temporarily prefer start-process instead of prelude/start-process
While my `prelude/start-process` function cannot support arguments in the form
of `'single quotes'`, I'm using `start-process`.
2020-01-22 21:13:05 +00:00
William Carroll
2a9fadd092 Change current-project to mono-repo
Point the constants/current-project variable to my mono-repo.

The constants.el file isn't as populated as I was expecting and I think
supporting it introduces indirection in my code. I'm considering removing it.
2020-01-22 21:13:05 +00:00
William Carroll
ec21e072a1 Prefer general to evil-leader
Another small step towards dropping support for evil-leader, which general
supplants.
2020-01-22 21:13:05 +00:00
William Carroll
d85df45bab Attempt to tidy Emacs mode line
Removing the major-modes and VCS information from my mode line, since I don't
use this much and I think my mode line is noisy enough as is.
2020-01-22 21:13:05 +00:00
William Carroll
cb39efd0ac Remove unused keybindings
In the interest of slimming down, removing these dusty keybindings.
2020-01-18 22:51:27 +00:00
William Carroll
66f597ac39 Format modules
Add missing headers and remove gratuitious whitespace.
2020-01-18 22:50:56 +00:00
William Carroll
77d46eb5e1 Debug failed initialization of keybindings
Some more pains of weening off of Dropbox is that my Emacs initialization is
sensitive to dependencies and missing require statements. I'm still debugging
everything.

Some modules called `exwm-input-set-key` before the `window-manager` module
loaded, which itself requires EXWM. This broke initialization. To get around
this I could've called `(require 'exwm)` in each of those modules. I chose to
define a `keybindings.el` module to whitelist some of my EXWM keybindings. I'm
not sure if this is the best way forward, but it is *some* way forward.
2020-01-18 22:47:11 +00:00
William Carroll
068a648736 Support string/contains?
Simple wrapper around s-contains? but in the interest of avoiding a mixture of
s.el and stirng.el functions, the wrapper was defined.
2020-01-18 22:37:27 +00:00
William Carroll
fa681ffdf0 Use assert in prelude/start-process
Since the tokenizing isn't working as expected, my keyboard.el function
keyboard/swap-caps-lock-and-escape was silenting failing.

I'm adding a prelude/refute in that function to make the failures noisy until
the tokenizing is properly supported.
2020-01-18 22:34:55 +00:00
William Carroll
158b66fbb5 Support Gruvbox theme
Add Gruvbox theme in themes.el.

Also made a note to consider supporting themes:
- with solid colors as wallpaper
- without compton's transparency
2020-01-18 17:00:22 +00:00
William Carroll
2e4092f67e Prefer general to evil-leader
One small change in a larger effort to drop support for evil-leader.
2020-01-18 16:59:46 +00:00
William Carroll
b00fa4ffe8 Load entr.el at Emacs initialization
Also make a note to rename entr.el to something else. That module should be
refactored, but it gets the job done currently.
2020-01-18 16:58:43 +00:00
William Carroll
68395b29f9 Re-order functions.el module
Move `wpc/find-file-split` directly below `wpc/find-file`.

TODO: This module is quite old and served as a bit of a dumping grounds for me
for a long time. As such, I think I should consider deleting dead code and
moving some of these functions to other modules.
2020-01-17 19:06:09 +00:00
William Carroll
cd3b879e7b Support clipboard/contents
This function returns the contents of the clipboard without calling paste.
2020-01-17 18:52:16 +00:00
William Carroll
e197dc5aba Re-enable wpc-org with direnv support
After moving some environment variables out of `~/.profile` and into a `.envrc`
file, I broke some of my modules because Emacs, which is started in
`~/.xsessionrc.shared`, is started from outside of the `.envrc` scope.

Thankfully someone wrote an excellent Emacs integration with `direnv` so now the
world keeps turning and it is even more beautiful than it was previously.
2020-01-17 10:56:21 +00:00
William Carroll
2108ee933a Support google3 as a citc alias
Sometimes I just want to visit //google3.
2020-01-17 10:56:21 +00:00
William Carroll
9108c3fa7d Drop support for prism-mode
Many times when I run `prism-mode` the contrast between the colors isn't strong
enough. This is unfortunate because I really like the idea.

Perhaps one day I can submit a PR to ensure that it uses the highest-contrast
colors available to it.
2020-01-17 10:56:21 +00:00
William Carroll
97fd83272c Prefer fullscreen for magit-status
Magit as a fullscreen buffer helps me focus by removing the noise of additional
buffers.
2020-01-17 10:56:21 +00:00
William Carroll
6ad100c5fa Debug colorscheme.el
`colorscheme/prev` was calling `colorscheme/load`, which has been changed to
`colorscheme/set`.
2020-01-17 10:56:21 +00:00
William Carroll
cab39b89af Only whitelist doom- prefixed themes
I find that I continually reach for the Doom themes rather than any of the
base16 or others.
2020-01-17 10:56:21 +00:00
William Carroll
190686fee1 Suppress load-theme from confirming changes
I don't feel like the confirmation dialog adds much value.
2020-01-17 10:56:21 +00:00
William Carroll
2f41167a6f Drop support for window-manager/screenshot
After defining the scrot.el module, I don't have much use for this function. In
fairness, I never used this function too much; I wrote it early on when I first
switched from i3 to EXWM. As such, it's a bit sloppy. Happy whenever I get a
change to do some spring cleaning.
2020-01-17 10:56:21 +00:00
William Carroll
f4d588b683 Consume Mononoki and JetBrainsMono in themes.el
I'm liking both of these fonts enough to prefer them over "Input Mono"... at
least for the time being.
2020-01-17 10:56:21 +00:00
William Carroll
8c3cd62ae3 Support package-lint
This library exposes a function called `package-lint-current-buffer` that I
needed to call when attempting to publish `ivy-clipmenu` to MELPA.
2020-01-17 10:56:21 +00:00
William Carroll
3de091ba2b Whitelist Mononoki and JetBrainsMono in fonts.el
What's the point of adding them if I'm not going to use them?
2020-01-17 10:56:21 +00:00
William Carroll
7a6ed72bf5 Allow message overrides in clipboard/{copy,paste}
In case libraries consuming this would like a way to control the message that's
output.
2020-01-17 10:56:21 +00:00
William Carroll
106f62e4f1 Support scrot.el
Write some Elisp to work with `scrot`, Linux's CLI utility for taking
screenshots. It's been too long this that was working as expected!

As a bonus, I learned that it's possible to copy images to Linux's clipboard and
not just their file paths. This makes for a really nice UX!
2020-01-17 10:56:21 +00:00
William Carroll
1de7d7797e Consume ivy-clipmenu
Move keybindings from ivy-clipmenu.el into my clipboard.el. I didn't want to
presume users' preferences for the keybindings in ivy-clipmenu.
2020-01-17 10:56:21 +00:00
William Carroll
a3077677f9 Rename clipmenu.el to ivy-clipmenu.el
TL;DR: Preparing ivy-clipmenu for publishing.

Also:
- Removes lingering TODO items.
- Clarifies module and function documentation.
- Defines groups for custom variables.
- Supports history variable for ivy-read.
2020-01-17 10:56:21 +00:00
William Carroll
47faf8d6f0 Add headers to fs.el file
These are missing and as a code janitor that's just plain unacceptable.
2020-01-17 10:56:21 +00:00
William Carroll
f11ae9c394 Begin support for terminator.el
TL;DR: Attempting to use Elisp to manage my Terminator themes.

Read the terminal.el module docs for more context about this endeavor.
2020-01-17 10:56:21 +00:00
William Carroll
25314ff20c Ensure clipmenu/list-clips output matches clipmenu
clipmenu/list-clips previously didn't sort or deduplicate entries in the same
way that the existing clipmenu list_clips function did. After running some
tests, clipmenu/list-clips matches the output except I'm unsure my duplicate
algorithm is identical.
2020-01-17 10:56:21 +00:00
William Carroll
b20fe610a4 Support functions to toggling the display of the laptop
Since I already support toggling for the 4k monitor, I might as well support it
for my laptop too.
2020-01-17 10:56:21 +00:00
William Carroll
50f0bd3dad Support list/dedupe-adjacent
Support a function to deduplicate adjacent elements in a list.

Also tracks additional work with TODOs.
2020-01-17 10:56:21 +00:00