Commit Graph

59 Commits

Author SHA1 Message Date
e63120b478 feat(package)!: migrate from straight.el to elpaca package manager (#30) 2026-01-02 07:46:55 +00:00
fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00
509c6ef8a5 chore(git-commit): bind M-q to fill-paragraph in git-commit-ts-mode 2024-11-05 00:17:35 +00:00
983ccd3c27 feat(version-control/magic): use git-commit-ts-mode
Offers more advanced syntax highlighting for commit messages, with
support for conventional commit messages.
2024-10-24 03:13:45 +01:00
d608d968e4 feat(version-control/magit): add convention-commit package
Suggests commit types in git-commit-mode.
2024-02-07 13:51:11 +00:00
4e33f79c29 chore(spelling/flyspell): move setup to a central list of hooks 2022-12-04 01:57:16 +00:00
dad465c90a chore(text-editing/smartparens): move setup to a central list of hooks 2022-12-04 01:55:43 +00:00
9654403bee feat(editor): enable subword-word globally in all buffers 2022-12-04 01:14:57 +00:00
977f343111 chore(version-control): set tab-width in status and diff magit modes 2022-10-19 23:22:02 +01:00
978667fc34 feat(vc/git-commit-mode): enable smartparens-mode and whitespace-mode 2022-07-13 18:54:38 +01:00
881250f6c4 chore(core): add siren-dir and siren-cache-dir helper functions 2022-04-26 20:00:03 +01:00
2b39d5b0d7 chore(use-package): use :preface in favor of :init when defining things 2022-04-22 23:25:56 +01:00
a8618938bf feat(core): use general.el for keybind definitions nearly everywhere
Primarily this replaces :bind with :general in all use-package calls.
2022-03-14 21:16:15 +00:00
fd707a6e1b feat(version-control): add github-review package
This serves as a alternative to the code-review package. I'm adding it
mostly for testing purposes so I can compare the two and see the
pros/cons with each.
2021-12-27 19:30:36 +00:00
90441a2590 feat(version-control): add gh-notify package
Also configure forge's dispatch menu to have a keybind for triggering
gh-notify.
2021-12-27 19:27:50 +00:00
36dd864a37 chore(version-control): move forge SQLite database file to cache directory 2021-11-30 22:32:28 +00:00
70f776d4f3 feat(version-control): add code-review package
This allows reviewing GitHub pull requests within Emacs.
2021-11-30 22:31:47 +00:00
ab001eeb0e fix(version-control/magit): when disabled delta still caused issues
Turns out running (magit-delta-mode -1) to "disable" or ensure it's
disabled as a magit-mode-hook was a bad idea, as it set
magit-diff-refine-hunk to nil.

So instead, we only call magit-delta-mode when siren-magit-delta-enabled
is not nil, and the delta executable is available.
2021-11-10 10:28:00 +00:00
ea97b5528a chore(version-control/diff-hl): minor tweaks and cleanup 2021-10-24 04:05:32 +01:00
1dbb5631f6 feat(version-control/magit): add magit-delta package
Disabled by default, as the syntax highlighting can make code harder to
read in the diff. Hence disabled by default, and easy to toggle on if I
want to try it.
2021-10-24 03:55:52 +01:00
d7c90818f1 chore(version-control): remove defunct comment
The fringe bitmaps are no longer based on those from doom-emacs, they're
custom and super simple.
2021-06-19 19:47:48 +01:00
93c22e1bb9 feat(editor): replace ido and amx with selectrum, prescient and marginalia 2021-06-17 20:13:57 +01:00
c8196d7590 fix(version-control): set correct diff-hl mode after desktop-read
The state of using diff-hl using the margin or fringe ends up within
desktop-mode save files, so let's force set diff-hl to use margin or
fringe based on if we have a window-system or not, both after diff-hl is
loaded, and also as a desktop-after-read hook.
2021-05-15 18:22:15 +01:00
e434e41d97 feat(version-control): improve styling of diff-hl indicators 2021-05-15 01:00:27 +01:00
bcfbc23a15 chore(version-control): add ~/.config/emacs-siren to magit repo dirs 2021-04-15 11:01:02 +01:00
04daa19768 chore(version-control): remove unnecessary require of magit 2021-04-15 10:59:33 +01:00
fd0e04ac02 chore(version-control): unpin diff-hl as recent performance issue has been fixed 2021-04-08 00:00:57 +01:00
1e5cc844d2 feat(version-control): add module for git-gutter as an alternative to diff-hl
For now I'm still using diff-hl, but I wanted to get git-gutter
configured so I can easily give try it out and compare it against
diff-hl.
2021-04-02 10:35:39 +01:00
e7020e814a feat(version-control): tweak diff-hl style
Change style back to a plain vertical line, but slightly narrower than
last time which I ended up not liking, while also aligning it to the
right hand side of the left fringe, so there's a gap between the window
border and the diff-hl status line. Also tweak the colors a bit.

I feel this works better, and keeps things nice and clean.
2021-04-02 10:15:22 +01:00
5a425b5812 fix(version-control): pin diff-hl to a known good commit
The very next commit introduces a new feature to show git hunks, which
seems to have a negative impact on performance when moving the cursor
around, or adding/removing text within lines which are highlighted by
diff-hl while diff-hl-flydiff-mode is enabled.

So for now I'm pinning diff-hl to the commit right before this was
introduced.
2021-04-01 01:07:33 +01:00
268b9020aa feat(version-control): switch diff-hl style back to default
After a few weeks with a custom and more minimal fringe style, I think I
actually prefer the default style.
2021-03-22 11:09:14 +00:00
d0223d4253 fix(version-control): add missing magit hook for diff-hl 2021-03-22 11:08:36 +00:00
00f6db64de feat(version-control): change diff-hl fringe bitmap style to be a thin solid line 2021-02-17 02:10:25 +00:00
efae487c94 feat(version-control): use diff-hl-margin-mode when running Emacs in a terminal 2021-02-17 02:04:56 +00:00
831503060f chore(startup): stop using emacs-startup-hook to trigger package load
Packages that need to be loaded on emacs startup, should just be loaded
through use-package in a non-deferred manner.

It makes no real difference to startup, loading the packages either
slows down emacs before "startup" is complete, or right after it
completes. End result is that Emacs is unresponsive for basically the
same amount of time regardless.
2021-02-17 01:52:58 +00:00
07470c27bd feat(version-control): ensure magit uses correct width for tab indents 2020-12-25 13:26:49 +00:00
f5405690b4 feat(version-control): correctly format forge-post-mode buffers with prettier-js
forge-post-mode uses temporary files for editing, which means that
prettier can't determine the formatter to use based on the
filename. Hence we need to explicitly pass `--parser markdown` as a CLI
arg to prettier.
2020-10-29 10:39:09 +00:00
bda82a9c77 feat(macos): move files/folders to trash instead of deleting them on macOS
Use the osx-trash package to enable emacs' built-in trash support, which
seems to explicitly lack macOS support.
2020-09-27 19:45:37 +01:00
efecb5172c chore(startup): Make various modules more lazy-loaded
This should improve startup speed a little bit.
2020-03-15 02:44:46 +00:00
d557d47dc0 chore(init): Use emacs-startup-hook instead of after-init-hook 2020-02-15 17:58:53 +00:00
b13ca362cb feat(packages): Replace package.el with straight.el 2020-02-04 10:08:37 +00:00
b257c7d206 feat(projects): Get treemacs working nicely with helm
And also better configured treemacs in general.
2020-01-27 03:55:12 +00:00
a0a72bddc5 feat(editor): Add siren-display-fill-column wrapper module
This module wraps around the fill-column-indicator and it's
fci-mode. This will enable easy switch-over to Emacs 27's native
display-fill-column-indicator feature.
2020-01-26 22:09:01 +00:00
392d769816 feat(line-numbers): Swap linum for built-in display-line-numbers
Also create a new siren-display-line-numbers module and function that's
responsible for turning on the display of line numbers. Future changes
to how line numbers are displayed can now be done in a single place.
2020-01-26 20:44:13 +00:00
7b77e2669d Don't pin magit to stable releases
The magit-status issues I previously had with the main melpa versions
seem to have been fixed.
2019-09-04 13:53:08 +01:00
20ddd90087 Add module for magit-todos 2019-08-16 13:46:02 +01:00
a7039ea983 Pin magit to melpa-stable source
Latest master build of magit seems to have issues with the status
buffer, where it turns on syntax high-lighting for quoted strings and
other weirdness that leaks all over the status buffer.
2019-08-12 11:20:15 +01:00
57f670088d Use use-package's :custom and :custom-face options everywhere 2019-06-10 19:29:58 +01:00
2e6dd89003 Store all temporary stuff in a specific cache folder
Instead of using effectively TMPDIR on the machine, let's use a `cache`
folder in the root of the .emacs.d directory.
2019-03-25 17:17:32 +00:00
544d9c8acf Update magit settings 2019-02-12 16:26:33 +00:00