Commit graph

27 commits

Author SHA1 Message Date
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Henrik Lissner
235db17742 lang/ledger: refactor & show report keys in header line
Rather than in the minibuffer, where it eventually disappears.
2021-03-27 15:49:26 -04:00
Henrik Lissner
5defe3ed88 lang/ledger: bind SPC m e -> ledger-post-edit-amount
Also rename advice to be more descriptive.
2021-03-27 15:38:07 -04:00
Henrik Lissner
58c8f6fa5b lang/ledger: add popup rule for *Ledger ...* buffers 2021-03-27 15:29:41 -04:00
Henrik Lissner
0df5da9882 lang/ledger: add rudimentary imenu support 2021-03-27 15:24:44 -04:00
Henrik Lissner
c2659d1ad9 lang/ledger: enable outline-minor-mode by default 2021-03-27 15:24:44 -04:00
Henrik Lissner
3002d149c5
Fix #3565: remove hledger support
hledger support in ledger-mode is incomplete. Perhaps we'll adopt
hledger-mode in the future? For now we'll just support ledger alone
instead of treading it as a fallback.
2020-07-20 22:04:41 -04:00
Johan Thoren
bce184d5cc
Set company-capf as backend for ledger-mode.
This provides pretty, and very useful completion of accounts.
Inspired by the Finance layer for Spacemacs.

Signed-off-by: Johan Thoren <johan@thoren.dev>
2020-07-14 23:36:10 +02:00
Henrik Lissner
f4d5953be5
Fix indentation 2020-02-09 14:55:44 -05:00
Johan Thorén
f01b03a73f
Fix list passed as argument to executable-find
Previously, a list would be passed as an argument to 'executable-find' in '+ledger--check-version-a'.

This instead passes "hledger" as an argument if found, else "ledger".
2020-02-09 14:32:19 +01:00
Henrik Lissner
73c893ba35
lang/ledger: refactor & use hledger by default 2020-02-08 20:53:50 -05:00
Henrik Lissner
12094788d7
Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
Henrik Lissner
69ed1a4a99
feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
Henrik Lissner
3f195614d9
Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
Henrik Lissner
2694a42fdb
lang/ledger: polish keybindings
Fixes #818
2018-08-22 02:35:55 +02:00
Henrik Lissner
18a0b059d0
lang/ledger: fix S P C key sequence #818
Forgot to run doom-leader-key through kbd
2018-08-21 21:36:56 +02:00
Henrik Lissner
9a792f3401
lang/ledger: tie evil-ledger to evil's +everywhere
And move it down. Core plugins should be closer to the top.
2018-08-20 23:34:39 +02:00
Henrik Lissner
a6f575ab1d
lang/ledger: don't error if ledger isn't installed 2018-08-20 23:34:39 +02:00
Henrik Lissner
ce4891ea0d
lang/ledger: fix leader key in reports #818 2018-08-20 23:34:34 +02:00
Henrik Lissner
e05d7cfee0
Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling
it on demand. Also fixes void-function: flycheck-mode errors when
:feature syntax-checker is disabled. This is experimental.

Indirectly fixes #710
2018-06-22 01:49:20 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
9d81bc5a8b
Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
Henrik Lissner
a4ddb1bc9b
General minor refactor + cleanup 2017-09-28 18:19:15 +02:00
Henrik Lissner
781f29dea1
Add lang/ledger #194 2017-09-08 21:49:12 +02:00