Commit graph

375 commits

Author SHA1 Message Date
Henrik Lissner
7acfb0c77c
nit: minor comment reformatting & revision 2024-03-26 10:39:24 -04:00
tecosaur
cb6e3f0e89
fix(modeline,everywhere): adjust checker -> check
As part of the recent UI bump (665d808d09), the doom-modeline changed
the name of the "checker" segment to "check".

Amend: 665d808d09
2024-03-22 10:07:57 -04:00
Henrik Lissner
0073c3d70d
docs(twitter): add deprecation notice
twittering-mode is non-functional and no known alternative exists.

Close: #6383
2024-03-13 01:00:39 -04:00
Henrik Lissner
b439300e6a
fix(everywhere): commandp error from C-c C-c
A temporary fix for an issue introduced upstream.

Ref: tecosaur/emacs-everywhere#75
2024-02-29 02:01:22 -05:00
Henrik Lissner
75ff47aef0
bump: :app
abo-abo/avy@955c8dedd6 -> abo-abo/avy@be612110cb
emacs-circe/circe@57fe189d7c -> emacs-circe/circe@d374042741
https://git.savannah.gnu.org/git/emms.git@43c614124922 -> https://git.savannah.gnu.org/git/emms.git@87d0d1fb0566
kidd/org-gcal.el@9bb3720525 -> kidd/org-gcal.el@a2d16b372e
remyhonig/elfeed-org@fe59a96969 -> remyhonig/elfeed-org@d62d23e25c
tecosaur/emacs-everywhere@b461c4b420 -> tecosaur/emacs-everywhere@fbeff19825
2024-02-05 17:21:21 -05:00
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05:00
Eric Lim
52be142e5c docs(rss): add a missing double quote in README 2023-11-24 11:02:28 -05:00
Chromium
a00f03079a
bump: :app rss
remyhonig/elfeed-org@7f3ad868f2 -> remyhonig/elfeed-org@fe59a96969 

- fix elfeed-org-export-opml error
- perf: use temporary buffers instead of find-file
- replace outline-on-heading-p with org-at-heading-p
- fix typo in last changes

Ref: remyhonig/elfeed-org#88
2023-11-23 18:32:04 -05:00
Henrik Lissner
88bb045388
docs(*): replace all-the-icons with nerd-icons
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +02:00
Henrik Lissner
eec8808f45
bump: :app rss
remyhonig/elfeed-org@3242ec0519 -> remyhonig/elfeed-org@7f3ad868f2

Ref: remyhonig/elfeed-org#87
2023-09-14 19:01:36 +02:00
Ellis Kenyő
9787022b83
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2023-09-14 01:03:55 +02:00
Henrik Lissner
89421f018b
bump: :app rss
remyhonig/elfeed-org@3242ec0519 -> remyhonig/elfeed-org@f1c1fd6b16
skeeto/elfeed@162d7d545e -> skeeto/elfeed@55fb162fa2

Close: #7407
Co-authored-by: fosskers <fosskers@users.noreply.github.com>
2023-09-12 21:30:56 +02:00
Henrik Lissner
a44e8d6bfd
nit: general reformatting & minor comment revision 2023-09-11 23:56:21 +02:00
Jeetaditya Chatterjee
42d5fd8350 docs(irc): add circe notification warning 2023-09-06 19:43:21 +02:00
Jeetaditya Chatterjee
a23e021032 tweak(irc): check circe-notifications is bound
As some people may disable this package it can cause them to not be able
to quit there irc session
2023-09-06 19:43:21 +02:00
Henrik Lissner
f1f010ff99
perf(rss): defer db compaction
Compacting elfeed's DB when killing the search buffer can incur a long
delay (which blocks Emacs). Doing so isn't really critical, so I've
moved it to kill-emacs-hook instead.

Close: #7127
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-03-11 13:03:20 -05:00
Henrik Lissner
d811fb4a0c
bump: :app
abo-abo/avy@ba5f035be3 -> abo-abo/avy@955c8dedd6
emacs-circe/circe@41cdc116b0 -> emacs-circe/circe@57fe189d7c
https://git.savannah.gnu.org/git/emms.git@b55bc4fe1857 -> https://git.savannah.gnu.org/git/emms.git@43c614124922
jeetelongname/elfeed-goodies@c9d9cd1967 -> jeetelongname/elfeed-goodies@544ef42ead
kidd/org-gcal.el@f8075bd8ea -> kidd/org-gcal.el@9bb3720525
remyhonig/elfeed-org@d28c858303 -> remyhonig/elfeed-org@3242ec0519
tecosaur/emacs-everywhere@0d0d185429 -> tecosaur/emacs-everywhere@b461c4b420

- (#6983) Fixes deprecated oauth flow used by org-gcal.

Close: #6983
Co-authored-by: Will Cohen <willcohen@users.noreply.github.com>
2023-02-18 15:27:49 -05:00
TEC
7801c41c41 tweak(everywhere): add icon to right of modeline
This adds an icon to indicate that Emacs Everywhere is being used, to
ease at-a-glance identification. The "exit_to_app" material icon was
chosen as it seems like a good fit for a window that will return you to
the application it was invoked from. The padding on the right stops the
icon from being right up against the very edge of the window.
2023-02-18 00:38:39 -05:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
Antonio Ruiz
e9ef904eee docs(calendar): say calfw instead of the calendar 2022-09-21 01:05:34 +02:00
Antonio Ruiz
6fc1aa9c62 feat(rss): only call elfeed if necessary
If our *rss* workspace is already populated by elfeed buffers, there is
no reason to re-initialize elfeed.
2022-09-21 01:05:34 +02:00
Antonio Ruiz
b2154b5f9b fix(irc): do not emit an error when calling =irc
When the *IRC* workspace is already populated by circe buffers, there is
no reason to emit an error, just switch to the *IRC* workspace and do
nothing.
2022-09-21 01:05:34 +02:00
Antonio Ruiz
31a6fa77d0 feat(calendar): only initialize calfw if necessary
If the *calendar* workspace is already populated with calfw buffers,
there is no reason to re-initialize calfw.
2022-09-21 01:05:34 +02:00
Antonio Ruiz
9d14d093c0 feat(calendar): use a different workspace name
The workspace name *calendar* is more consistent with other app
workspaces like *mu4e*, *notmuch*, *rss*, and *IRC*.
2022-09-21 01:05:34 +02:00
Henrik Lissner
9e3d99277e
docs(everywhere): update CLI command
6c0b7e1 introduced a new convention for CLIs defined by Doom's modules:
to namespace them under `doom +MODULE ...`. What was once 'doom
everywhere' is now 'doom +everywhere', so the docs needed correcting.

Ref: 6c0b7e1530
2022-09-07 02:34:57 +02:00
Henrik Lissner
aa54383b5d
refactor: deprecate doom-etc-dir for doom-data-dir
doom-etc-dir will be renamed to doom-data-dir, to better reflect its
purpose, and align it with XDG_DATA_HOME (where it will be moved to in
v3, where Doom will begin to obey XDG directory conventions more
closely).
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Henrik Lissner
ed04aef2a9
docs: add PR ref to #+since lines 2022-08-04 01:16:13 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
Henrik Lissner
e4a1e4c909
fix(rss): *rss* workspace doesn't exist error
Co-authored-by: Johnson Liu <buyandrep@gmail.com>
2022-07-04 21:51:46 +02:00
Henrik Lissner
93fc74a143
fix(everywhere): update cli command
To accommodate changes recently made to Doom's CLI framework.

Ref: 6c0b7e1530
2022-06-22 01:27:03 +02:00
Henrik Lissner
f350a28db2
revert: fix(rss): fix *rss* workspace doesn't exist
Removed by request.

Ref: #6422
Revert: f178eb6f52
2022-06-20 16:11:02 +02:00
Henrik Lissner
6c0b7e1530
refactor!(cli): rewrite CLI framework libraries
BREAKING CHANGE: this changes Doom's CLI framework in subtle ways, which
is listed in greater detail below. If you've never extended Doom's CLI,
then this won't affect you, but otherwise it'd be recommended you read
on below.

This commit focuses on the CLI framework itself and backports some
foundational changes to its DSL and how it resolves command line
arguments to CLIs, validates input, displays documentation, and persists
state across sessions -- and more. This is done in preparation for the
final stretch towarding completing the CLI rewrite (see #4273).

This is also an effort to generalize Doom's CLI (both its framework and
bin/doom), to increase it versatility and make it a viable dev tool for
other Doom projects (on our Github org) and beyond.

However, there is a *lot* to cover so I'll try to be brief:

- Refactor: generalize Doom's CLI framework by moving all bin/doom
  specific configuration/commands out of core-cli into bin/doom. This
  makes it easier to use bin/doom as a project-agnostic development
  tool (or for users to write their own).
- Refactor: change the namespace for CLI variables/functions from
  doom-cli-X to doom-X.
- Fix: subcommands being mistaken as arguments. "doom make index" will
  resolve to (defcli! (doom make index)) if it exists,
  otherwise (defcli! (doom make)) with "index" as an argument. Before
  this, it would resolve to the latter no matter what. &rest can
  override this; with (defcli! (doom make) (&rest args)), (defcli! (doom
  make index)) will never be invoked.
- Refactor!: redesign our output library (was core/autoload/output.el,
  is now core/autoload/print.el), and how our CLI framework buffers and
  logs output, and now merges logs across (exit! ...) restarts.
- Feat: add support for :before and :after pseudo commands. E.g.

    (defcli! (:before doom help) () ...)
    (defcli! (:after doom sync) () ...)

  Caveat: unlike advice, only one of each can be defined per-command.
- Feat: option arguments now have rudimentary type validation (see
  `doom-cli-option-arg-types`). E.g.

    (defcli! (doom foo) ((foo ("--foo" num))) ...)

  If NUM is not a numeric, it will throw a validation error.

  Any type that isn't in `doom-cli-option-arg-types` will be treated as a
  wildcard string type. `num` can also be replaced with a specification,
  e.g. "HOST[:PORT]", and can be formatted by using symbol quotes:
  "`HOST'[:`PORT']".
- Feat: it is no longer required that options *immediately* follow the command
  that defines them (but it must be somewhere after it, not before). E.g.
    With:
      (defcli! (:before doom foo) ((foo ("--foo"))) ...)
      (defcli! (doom foo baz) () ...)
    Before:
      FAIL: doom --foo foo baz
      GOOD: doom foo --foo baz
      FAIL: doom foo baz --foo
    After:
      FAIL: doom --foo foo baz
      GOOD: doom foo --foo baz
      GOOD: doom foo baz --foo
- Refactor: CLI session state is now kept in a doom-cli-context struct (which
  can be bound to a CLI-local variable with &context in the arglist):

    (defcli! (doom sync) (&context context)
      (print! "Command: " (doom-cli-context-command context)))

  These contexts are persisted across sessions (when restarted). This is
  necessary to support seamless script restarting (i.e. execve
  emulation) in post-3.0.
- Feat: Doom's CLI framework now understands "--". Everything after it will be
  treated as regular arguments, instead of sub-commands or options.
- Refactor!: the semantics of &rest for CLIs has changed. It used to be "all
  extra literal, non-option arguments". It now means *all* unprocessed
  arguments, and its use will suppress "unrecognized option" errors, and
  tells the framework not to process any further subcommands. Use &args
  if you just want "all literal arguments following this command".
- Feat: add new auxiliary keywords for CLI arglists: &context, &multiple,
  &flags, &args, &stdin, &whole, and &cli.
  - &context SYM: binds the currently running context to SYM (a
    `doom-cli-context` struct). Helpful for introspection or passing
    along state when calling subcommands by hand (with `call!`).
  - &stdin SYM: SYM will be bound to a string containing any input piped
    into the running script, or nil if none. Use
    `doom-cli-context-pipe-p` to detect whether the script has been
    piped into or out of.
  - &multiple OPTIONS...: allows all following OPTIONS to be repeated. E.g. "foo
    -x a -x b -x c" will pass (list ("-x" . "a") ("-x" . "b") ("-x" .
    "c")) as -x's value.
  - &flags OPTIONS...: All options after "&flags" get an implicit --no-* switch
    and cannot accept arguments. Will be set to :yes or :no depending on which flag is
    provided, and nil if the flag isn't provided. Otherwise, a default
    value can be specified in that options' arglist. E.g.

      (defcli! (doom foo) (&flags (foo ("--foo" :no))) ...)

    When called, this command sets FOO to :yes if --foo, :no if --no-foo, and
    defaults to :no otherwise.
  - &args SYM: this replaces what &rest used to be; it binds to SYM a
    list of all unprocessed (non-option) arguments.
  - &rest SYM: now binds SYM to a list of all unprocessed arguments, including
    options. This also suppresses "unrecognized option" errors, but will render
    any sub-commands inaccessible. E.g.

      (defcli! (doom make) (&rest rest) ...)
      ;; These are now inaccessible!
      (defcli! (doom make foo) (&rest rest) ...)
      (defcli! (doom make bar) (&rest rest) ...)
  - &cli SYM: binds SYM to the currently running `doom-cli` struct. Can also be
    obtained via `(doom-cli-get (doom-cli-context-command context))`. Possibly
    useful for introspection.
- feat: add defobsolete! macro for quickly defining obsolete commands.
- feat: add defalias! macro for quickly defining alias commands.
- feat: add defautoload! macro for defining an autoloaded command (won't
  be loaded until it is called for).
- refactor!: rename defcligroup! to defgroup! for consistency.
- fix: CLIs will now recursively inherit plist properties from parent
  defcli-group!'s (but will stack :prefix).
- refactor!: remove obsolete 'doom update':
- refactor!: further generalize 'doom ci'
  - In an effort to generalize 'doom ci' (so other Doom--or
    non-doom--projects can use it), all its subcommands have been
    changed to operate on the current working directory's repo instead
    of $EMACSDIR.
  - Doom-specific CI configuration was moved to .github/ci.el.
  - All 'doom ci' commands will now preload one of \$CURRENT_REPO_ROOT/ci.el or
    \$DOOMDIR/ci.el before executing.
- refactor!: changed 'doom env'
  - 'doom env {-c,--clear}' is now 'doom env {clear,c}'
  - -r/--reject and -a/--allow may now be specified multiple times
- refactor!: rewrote CLI help framework and error handling to be more
  sophisticated and detailed.
- feat: can now initiate $PAGER on output with (exit! :pager) (or use
  :pager? to only invoke pager is output is longer than the terminal is
  tall).
- refactor!: changed semantics+conventions for global bin/doom options
  - Single-character global options are now uppercased, to distinguish them from
    local options:
    - -d (for debug mode) is now -D
    - -y (to suppress prompts) is now -!
    - -l (to load elisp) is now -L
    - -h (short for --help) is now -?
  - Replace --yes/-y switches with --force/-!
  - -L/--load FILE: now silently ignores file errors.
  - Add --strict-load FILE: does the same as -L/--load, but throws an error if
    FILE does not exist/is unreadable.
  - Add -E/--eval FORM: evaluates arbitrary lisp before commands are processed.
  - -L/--load, --strict-load, and -E/--eval can now be used multiple times in
    one command.
  - Add --pager COMMAND to specify an explicit pager. Will also obey
    $DOOMPAGER envvar. Does not obey $PAGER.
- Fix #3746: which was likely caused by the generated post-script overwriting
  the old mid-execution. By salting the postscript filenames (with both an
  overarching session ID and a step counter).
- Docs: document websites, environment variables, and exit codes in
  'doom --help'
- Feat: add imenu support for def{cli,alias,obsolete}!

Ref: #4273
Fix: #3746
Fix: #3844
2022-06-18 23:53:12 +02:00
Johnson Liu W
f178eb6f52 fix(rss): fix *rss* workspace doesn't exist
Change-Id: Ic42528fcda679ff3538db2fad4c7d4dae6fc8d7a
2022-06-18 17:18:51 +02:00
Henrik Lissner
9b5a3116d2
bump: :app
algernon/elfeed-goodies@8e4c1fbfb8 -> algernon/elfeed-goodies@c9d9cd1967
emacs-circe/circe@77e16de3b9 -> emacs-circe/circe@41cdc116b0
https://git.savannah.gnu.org/git/emms.git@c3596ae7166d -> https://git.savannah.gnu.org/git/emms.git@b55bc4fe1857
kidd/org-gcal.el@6e26ae75ae -> kidd/org-gcal.el@f8075bd8ea
remyhonig/elfeed-org@268efdd012 -> remyhonig/elfeed-org@d28c858303
tecosaur/emacs-everywhere@02450162ad -> tecosaur/emacs-everywhere@0d0d185429

Fix: #6410
Close: #6411
Co-authored-by: Gpkfr <gpkfr@users.noreply.github.com>
2022-06-17 20:28:07 +02:00
Henrik Lissner
fd12794930
refactor(lib): use cl-callf instead of plist-{put,delete}!
I rediscovered cl-callf and decided to cut down on redundancies.
2022-06-17 18:20:45 +02:00
Henrik Lissner
c183aa7174
fix(everywhere): inhibit local-vars hooks
Indirectly suppresses LSP (and other) servers, which will likely not
function correctly in emacs-everywhere's temp buffers anyway.
2022-04-22 23:36:05 +02:00
Henrik Lissner
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
Daniel Levy Moreno
6a038068d2
fix(rss): unbalanced parens in map!
Amend: 85b16f2f48
2022-01-31 01:19:11 +01:00
Daniel Levy Moreno
85b16f2f48
refactor(rss): factor out hardcoded workspace name 2022-01-30 20:43:07 +01:00
Henrik Lissner
14286dbee6 bump: :app
abo-abo/avy@e92cb37457 -> abo-abo/avy@ba5f035be3
algernon/elfeed-goodies@95b4ea632f -> algernon/elfeed-goodies@8e4c1fbfb8
https://git.savannah.gnu.org/git/emms.git@32ff8a70ca97 -> https://git.savannah.gnu.org/git/emms.git@c3596ae7166d
kidd/org-gcal.el@8b6df4b727 -> kidd/org-gcal.el@6e26ae75ae
tecosaur/emacs-everywhere@ed03b9396d -> tecosaur/emacs-everywhere@02450162ad
2022-01-30 02:42:54 +01:00
Jeetaditya Chatterjee
c7753adbb3 tweak(rss): use asterisk around workspace name
This is to make it conform to the convention that all other app
workspaces conform to (plus it was bugging me)
2022-01-15 21:14:55 +01:00
Henrik Lissner
8c585cee46 bump: :app
https://git.savannah.gnu.org/git/emms.git@c42fab572846 -> https://git.savannah.gnu.org/git/emms.git@32ff8a70ca97
kidd/org-gcal.el@80e6f9501f -> kidd/org-gcal.el@8b6df4b727
tecosaur/emacs-everywhere@da88fa2d04 -> tecosaur/emacs-everywhere@ed03b9396d
2021-12-14 01:21:33 +01:00
Henrik Lissner
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
Henrik Lissner
5b354ae4f3 docs(:app): update READMEs to new format 2021-11-21 20:04:28 +01:00
Henrik Lissner
df62fcba26 docs: add category readmes 2021-11-21 20:04:28 +01:00