Commit Graph

14252 Commits

Author SHA1 Message Date
Henrik Lissner
518c97a2ac
Rename {if,when}! -> eval-{if,when}!
To better represent its purpose, as extensions to Emacs' eval-when*
API (for control flow at compile time).
2020-08-27 01:10:08 -04:00
Henrik Lissner
7808f02646
ui/modeline: add +modeline-mode & +modeline-global-mode 2020-08-27 01:10:07 -04:00
Henrik Lissner
2e2f72a2de
ui/modeline: refactor buffer-id segment 2020-08-27 01:10:07 -04:00
Henrik Lissner
b3006ecabb
ui/modeline: update buffer id when renaming files
And revert 247ce145b, since I wasn't aware
after-set-visited-file-name-hook existed.
2020-08-26 19:54:05 -04:00
Henrik Lissner
247ce145b4
Revert buffer after renaming file 2020-08-26 19:52:06 -04:00
Henrik Lissner
e00560caf8
Fix #3827 (part 2): inverted file cookies
Turns out some autodefs weren't being noop'ed when their file's cookie
returns nil. This was the secondary cause of #3827.
2020-08-26 19:51:46 -04:00
Henrik Lissner
bfd71a8bb9
Fix #3827: void-variable flyspell-delayed-commands
This occurs in org-compat.el:

  (eval-after-load "flyspell"
    '(add-to-list 'flyspell-delayed-commands 'org-self-insert-command))

By not using a package symbol, this code runs whenever any file named
flyspell.el is loaded. Guess what one of the :checkers spell module's
autoloads files is named? flyspell.el
2020-08-26 19:33:24 -04:00
Henrik Lissner
848cc117c4
ui/modeline: cache buffer id for +light modeline 2020-08-26 17:23:31 -04:00
Henrik Lissner
6352524d32
Allow def-modeline-var! to overwrite old segments 2020-08-26 16:58:25 -04:00
Henrik Lissner
e459842a9b
Escape newlines in backtrace frames
And quote strings
2020-08-26 16:02:55 -04:00
Henrik Lissner
c7588bacdf
cli/upgrade: don't reload if Doom's up-to-date 2020-08-26 15:11:47 -04:00
Henrik Lissner
ed2c750023
docs/getting_started: clarify "using local packages" #3842 2020-08-26 14:25:46 -04:00
Henrik Lissner
2df1eb7a76
Fix #2972: disable eldoc for plantuml org blocks 2020-08-26 13:55:09 -04:00
Henrik Lissner
018cedf05f
tools/lsp: fix void-function apply-orig-fn
When +lsp-auto-install-servers is non-nil.
2020-08-26 13:22:05 -04:00
Henrik Lissner
1c99aed0c0
Add +python-{ipython,jupyter}-command vars for REPLs 2020-08-25 21:22:56 -04:00
Henrik Lissner
76eae7bc46
Bind SPC s S -> swiper-isearch-thing-at-point #3656 2020-08-25 21:12:50 -04:00
Henrik Lissner
47b42a9d08
Don't exec postscript #3746
Doesn't seem to persist exported environment variables (like __DOOMPOST)
in some windows environments.
2020-08-25 20:22:06 -04:00
Henrik Lissner
239516a7db
Fix #3831: integer expression expected error on bin/doom
Also mentioned in #3746
2020-08-25 13:24:45 -04:00
Henrik Lissner
ce2cabf07e
Autoload org-download-clipboard #3830 2020-08-25 06:07:47 -04:00
Henrik Lissner
63a03848a3
Fix literate tangling on 'doom sync'
Relevant to #3746
2020-08-25 06:01:35 -04:00
Henrik Lissner
bdbeb8f507
lang/org: SPC m a p -> org-download-clipboard
And SPC m a P -> org-download-yank for consistency.

p meaning paste.

Closes #3830
2020-08-25 05:50:09 -04:00
Henrik Lissner
9e43b69664
docs/api: correct custom-theme-set-faces! example 2020-08-25 05:12:54 -04:00
Henrik Lissner
c0500df5fb
bin/doom: move debugger config to core-cli
And remove unnecessary path expansion.
2020-08-25 05:08:22 -04:00
Henrik Lissner
93ac32d082
bin/doom: refactor shebang preamble
Indirectly fixes folks' ability to set EMACS to more complex
commands (like 'flatpak run org.gnu.emacs').
2020-08-25 05:08:14 -04:00
Henrik Lissner
a986621a5f
Revert 70148bb
Fixes #3829
Relevant to #3691
2020-08-25 01:57:00 -04:00
Henrik Lissner
6e22a15e43
Fix 'doom help'
doom-cli-internal-p was accidentally removed in e632871a1, and the
psuedo CLI command :main was renamed to :doom.
2020-08-24 23:36:11 -04:00
Henrik Lissner
0dfee56e35
Fix string type error on 'doom upgrade' 2020-08-24 23:22:57 -04:00
Henrik Lissner
4fa0241134
bin/doom: allow script to be symlinked #3746 2020-08-24 23:19:42 -04:00
Henrik Lissner
5c6189fb4e
Simplify doom/version output
Only really needs to output Doom's version and build info.
2020-08-24 23:00:32 -04:00
Henrik Lissner
98283d302b
docs/faq: minor corrections 2020-08-24 23:00:32 -04:00
Henrik Lissner
75cca3586d
Fix gq/gw squeezing spaces across filled lines
"   abcdef" would be changed to "abcdef". Vim doesn't do this. Evil
shouldn't either.
2020-08-24 23:00:32 -04:00
Henrik Lissner
e632871a11
core-cli: backport more refactors from rewrite
Still a long way to go, but this introduces a few niceties for
debugging CLI failures:

+ The (extended) output of the last bin/doom command is now logged to
  ~/.emacs.d/.local/doom.log
+ If an error occurs, short backtraces are displayed whether or not you
  have debug mode on. The full backtrace is written to
  ~/.emacs.d/.local/doom.error.log.
+ bin/doom now aborts with a warning if:
  - The script itself or its parent directory is a symlink. It's fine if
    ~/.emacs.d is symlinked though.
  - Running bin/doom as root when your DOOMDIR isn't in /root/.
  - If you're sporting Emacs 26.1 (now handled in the elisp side rather
    than the /bin/sh shebang preamble).
+ If a 'doom sync' was aborted prematurely, you'll be warned that Doom
  was left in an inconsistent state and that you must run `doom sync`
  again.

May address #3746
2020-08-24 23:00:32 -04:00
Henrik Lissner
7e362e8fbd
Redesign doom/info
+ Replace "daemonp" and "windowsys" fields with "traits" field, which
  can now indicate the presence of: Chemacs, exec-path-from-shell,
  symlinked EMACSDIR/DOOMDIR, a running server, the daemon and an envvar
  file.
+ Now replaces $USER in absolute paths with literal "$USER".
+ Reordered fields from most to least general (system -> emacs -> doom)
+ Show "&user" next to modules that are private modules (defined in
  ~/.doom.d/modules/)
2020-08-24 22:27:40 -04:00
Henrik Lissner
1884828d22
Add :shadow parameter to package!
For to make replacing built-in packages easier.
2020-08-24 22:27:40 -04:00
Henrik Lissner
6f49f2151e
Fix #3812: direnv not in scope for babel execution 2020-08-24 22:27:40 -04:00
Henrik Lissner
134f959838
tools/lsp: update readme TOC 2020-08-24 22:27:40 -04:00
Henrik Lissner
af35e56abb
Bump :completion
+ :completion company
  company-mode/company-mode@54f60ef -> company-mode/company-mode@4462e7d
  sebastiencs/company-box@20384f0 -> sebastiencs/company-box@d8f71fd
+ :completion helm
  emacs-helm/helm@e9a1e53 -> emacs-helm/helm@d2fbf66
2020-08-24 22:27:37 -04:00
Henrik Lissner
5c6dca2e1a
Merge pull request #3819 from gagbo/fix/bepo-helm-maps
[Fix] be lazier for minibuffer maps in :layout bepo
2020-08-24 22:26:21 -04:00
Henrik Lissner
09fe785a0d
Merge pull request #3822 from zzamboni/fix/org-capture-string-comparison
[Fix] string comparison in TERM check in org-capture
2020-08-24 22:26:15 -04:00
Henrik Lissner
87431c91c5
Merge pull request #3823 from ymarco/latex-spell-fu
Add latex faces to +spell-excluded-faces-alist
2020-08-24 22:26:09 -04:00
Henrik Lissner
04057aec0c
Merge pull request #3825 from JakDar/develop
If +flyspell enabled, disable spell-fu keybindings and use flyspell ones
2020-08-24 22:26:03 -04:00
Jakub Darul
2564bbce0d Use flyspell-mode for SPC t s if +flyspell present
Also corresponding bindigs fix for +emacs-bindigs.el
2020-08-24 20:36:16 +02:00
Jakub Darul
f6bae75bff Disable spell-fu keybinding if +flyspell enabled 2020-08-24 20:25:49 +02:00
Yoav Marco
c0a3c6f977 Add latex faces to +spell-excluded-faces-alist 2020-08-24 16:16:19 +03:00
Diego Zamboni
394c9b5a70 Fix string comparison in TERM check
Script was using -eq, which is a numeric comparison, and was producing
an "integer expression expected" error. Changed to =, the string
comparison operator.
2020-08-24 14:42:45 +02:00
Gerry Agbobada
49ab3dd23f
Separate rotation of minibuffer maps
We cannot use the old method as the hook triggered before the keymaps
are created and possibly modified by (use-package :config :map) hooks
2020-08-24 11:05:00 +02:00
Gerry Agbobada
e164f3714f
Set helm-rg-map in the default +default-minibuffer-maps
It seems like a typo
2020-08-24 11:03:46 +02:00
Henrik Lissner
e3750dbf66
checkers/spell: add +flyspell flag
spell-fu lacks support for multiple dictionaries, affix expansion, and
many non-English dictionaries, so I've added back flyspell support to
the spell module, but opt-in, because it is still the significantly
slower option and spell-fu may support them one day.

If not, tlikonen/wcheck-mode is another alternative to consider.

Fixes #3813
2020-08-23 18:48:50 -04:00
Henrik Lissner
97471f11db
Fix #2807: fix void-variable errors in ui/ligatures 2020-08-23 18:15:17 -04:00
Henrik Lissner
00e9d8335c
lang/rust: update readme 2020-08-23 17:27:32 -04:00