Commit graph

10828 commits

Author SHA1 Message Date
Henrik Lissner
437c33a8b2 Fix #4949: evil-want-visual-char-semi-exclusive = nil
This setting is _old_. Why it was set has been long forgotten, so I will
revert it to its default value of nil (which also fixes #4949).
2021-04-29 18:18:17 -04:00
Henrik Lissner
1b132d2e50 lang/org: add ob-elixir 2021-04-29 18:18:17 -04:00
Henrik Lissner
259cf83ef1 Enhance FFAP lookup backend
gf (+lookup/file) has been changed to:

+ Use the active selection instead of the filename-at-point when
  searching for a file (as requested in #4942).
+ Pre-fill the FFAP prompt with the thing at point if no obvious
  filepath can be guessed from it (via ffap-alist).
+ Offer to search the current project for the thing-at-point (if
  counsel-file-jump is available).
+ Fall back to a standard ffap prompt if all else fails.

I've also reversed te order of file lookup backends so that our FFAP
backend is treated as a never-failing last resort (also because the
bug-reference backend is known to fail gracefully, so we can trust it to
run first).

Closes #4942
2021-04-29 17:24:40 -04:00
Henrik Lissner
3a4024e790
Merge pull request #4943 from mangkoran/develop
Bump :lang markdown
2021-04-29 13:48:27 -04:00
Henrik Lissner
e8319e4f61
Merge pull request #4912 from 5t111111/bump-lsp-sourcekit
Bump :lang swift
2021-04-29 13:46:00 -04:00
Henrik Lissner
ccf6f0b53d Log unsafe eval forms in file/dir local variables 2021-04-29 13:25:48 -04:00
Henrik Lissner
9d643b14ed Revise comments 2021-04-29 13:25:48 -04:00
Afiq Nazrie
90c41564c4 Bump :lang markdown
051734091a -> ac9ea26b94
98d566db76 -> 28552059c4
2021-04-29 00:07:22 +08:00
Hynggyu Jang
ec3132bbc4 lang/org: cleanup +pretty feature, mostly about if cookie
Add `if` cookie so that it doesn't get compiled by `doom compile`.
2021-04-28 09:56:14 +09:00
John Hammond
86f5dd842e
Remove the -g background flag on Skim.app
The Skim.app `displayline` command takes the flag `-g` which is "Do not bring Skim to the foreground"

when viewing the pdf results of the latex build, bringing skim to the foreground saves an `Alt+Tab` to open the app that I was intending to lauch by the auctex View command.
2021-04-27 09:38:54 -05:00
Jan Felix Langenbach
acb0399424 Reimplement +emacs-lisp--module-at-point 2021-04-26 00:39:55 +02:00
William Vaughn
f37fdea637
rss: +org flag control installation of elfeed-org 2021-04-23 23:22:15 -07:00
Hynggyu Jang
1e1838d29b fix #4901: suppress strange behavior of org agenda commands
With current hacks involving `org-agenda-files`, one cannot use org agenda
commands like clock in or change the entry's state to done, etc.

Specifically, the mangled behavior observed at #4901. This commit fixes those
problems around `org-agenda` buffer specific commands.

For more details, please refer to https://github.com/hlissner/doom-emacs/issues/4759#issuecomment-822100632.
2021-04-24 10:53:29 +09:00
Hirofumi Wakasugi
65e9876c33
Bump :lang swift
swift-emacs/swift-mode@95ff004 -> swift-emacs/swift-mode@ad12a30
emacs-lsp/lsp-sourcekit@ff204ed -> emacs-lsp/lsp-sourcekit@aafa987

Adds support for sourcekit-lsp bundled with Xcode
2021-04-24 10:08:46 +09:00
Kalle Lindqvist
8e33ecf29a config/default: Fix C-return binding in GUI Emacs
The "C-RET" binding does only seem to work when running Emacs in a
terminal. "C-<return>" makes it work in the GUI.
2021-04-22 19:37:42 +02:00
Henrik Lissner
f621ff8047 lang/org: fix org-ditaa jar paths
Now also includes contrib/scripts in org-mode's build directory.
2021-04-21 21:45:04 -04:00
Henrik Lissner
cb4782b190 Bump :lang scheme
emacs-geiser/chez@4cb7f26 -> emacs-geiser/chez@03da1c1
emacs-geiser/chibi@54e7f38 -> emacs-geiser/chibi@6f59291
emacs-geiser/chicken@47be5b4 -> emacs-geiser/chicken@ceab39c
emacs-geiser/gambit@0ee4156 -> emacs-geiser/gambit@3294c94
emacs-geiser/geiser@c5a9aae -> emacs-geiser/geiser@2b45bd3
emacs-geiser/guile@93ef710 -> emacs-geiser/guile@700ac98
emacs-geiser/racket@a87fd44 -> emacs-geiser/racket@22e56ce

Also includes minor refactors.
2021-04-21 21:45:04 -04:00
Henrik Lissner
1d155d0c2f lang/org: reveal ancestors of point after saveplace
When opening an org file and the point is placed in a folded region (by
saveplace), it reveals the current subtree. Instead, it will reveal the
current subtree *and* its ancestors (and their siblings), which is more
intuitive.
2021-04-21 21:45:04 -04:00
Henrik Lissner
3e425ab2f2 tools/magit: reveal point if in invisible region
When visiting a file from magit.

Fix #4895
2021-04-21 21:45:04 -04:00
Dave Lucia
211ef8c93c
Syntax highlight .sface files as html
[Phoenix.LiveView](https://hexdocs.pm/phoenix_live_view) has a project called [Surface](https://surface-ui.org/) that adds a `.sface` extension to files. These should be syntax highlighted as html.

First PR!
2021-04-21 15:53:34 -04:00
Sergey Lebedev
83bfe76b20 Use correct brew install --cask command
I've noticed that some docs are a bit outdated, as homebrew doesn't have
`brew cask` command now, all features regarding to casks were moved to
the option `--cask` instead.

This commit just introduce such changes to be up-to-date with homebrew instructions.
2021-04-21 22:21:02 +03:00
Hugo Nobrega
4f50d9a750 Doom style: add blank lines, align keys, change macro expansion keys 2021-04-19 21:08:02 -03:00
Rudi Grinberg
0aaebe2ca1 Fix treemacs + lsp doctor check
The previous check was incorrect when eglot and treemacs without lsp was
on.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2021-04-18 21:17:52 -07:00
Henrik Lissner
065d06edbb Bump :editor evil
emacs-evil/evil@d998a81 -> emacs-evil/evil@1b3db63
cute-jumper/evil-embrace.el@4379ade -> cute-jumper/evil-embrace.el@464e8ec

cute-jumper/evil-embrace.el#7 was merged, so our hack is no longer
needed.
2021-04-18 22:25:45 -04:00
Hugo Nobrega
c2b40148b8 fix and add keybinds in :lang scheme, with descriptions
Some keys were bound to no-longer-existing commands, or commands which changed
name.

Others only made sense in the REPL, or /also/ in the REPL, so the keybinds are
now in `scheme-mode-map', `geiser-repl-mode-map', or both accordingly.
2021-04-18 22:01:17 -03:00
Henrik Lissner
f3748b2977 Fix #4559: wrong-type-arg error on RET in some comments
Some modes will set comment-line-break-function to an anonymous function
or advice (as octave-mode does), which will cause this fboundp check to
throw a type error when you press RET while on a commented line.
2021-04-18 13:07:18 -04:00
Henrik Lissner
a0de71dee8 Fix #4886: fix +ivy-buffer-preview for SPC b B 2021-04-18 12:43:00 -04:00
Henrik Lissner
1ebfa35b71 editor/evil: fix csw, csW, css, & csp text objects
Until cute-jumper/evil-embrace.el#7 is merged.
2021-04-18 01:21:41 -04:00
Henrik Lissner
363f27b58a
Merge pull request #4870 from gagbo/fix-4848/info-mode-bepo-ts
fix(input layout bepo): unmap t/s in Info-mode-map
2021-04-17 23:28:00 -04:00
Henrik Lissner
d7de9118e8 Fix #4882: ffap lookup handler triggers twice
Also, fall back to counsel-file-jump before ffap.
2021-04-17 23:26:27 -04:00
Gerry Agbobada
165541cdae
fix(input layout bepo): unmap t/s in Info-mode-map
Fixes #4848
2021-04-17 09:59:09 +02:00
Henrik Lissner
8427af3247
Merge pull request #4875 from dsdshcym/fix-lookup-documentation-handler
Indicate that lsp-describe-thing-at-point is async
2021-04-17 00:35:56 -04:00
Henrik Lissner
bd36b8f59c
Merge pull request #4873 from jcf/bump-evil
Bump :editor evil
2021-04-17 00:33:54 -04:00
Henrik Lissner
c9056ddb53 Fix #4819: auto-update xterm title 2021-04-17 00:26:07 -04:00
Henrik Lissner
c339bb0929 Fix #4563: ob-c.elc failed to provide feature ob-c
Due to case shenanigans, ob-C.el's feature name is ob-C, not ob-c,
preventing folks from using 'c' (lowercase) as a language name for org
babel blocks.
2021-04-17 00:09:50 -04:00
Henrik Lissner
dec15832de Fix #4877: dired not sorting directories first
On macOS and Linux, because ls-lisp hasn't been loaded yet.
2021-04-17 00:04:45 -04:00
Yiming Chen
00de463d10 Indicate that lsp-find-implementation is async as well
- this fixes an issue that when there are multiple implementations, jump
  to one implementation that's in another file fails
2021-04-17 08:54:50 +08:00
Yiming Chen
6563e89bda Indicate that lsp-describe-thing-at-point is async
- otherwise, `+lookup-online-backend-fn` would be called as well
- lsp-describe-thing-at-point was marked as not async in
  d4eb7e31ac
- but `lsp-describe-thing-at-point` calls `lsp--make-request`
  internally (which is async I assume):
  eda51c2166/lsp-mode.el (L4677)
2021-04-17 07:58:50 +08:00
James Conroy-Finn
2acfbcb79d
Bump :editor evil
emacs-evil/evil-collection@b45ec5bemacs-evil/evil-collection@b6025cf
emacs-evil/evil@7eace67 -> emacs-evil/evil@d998a81

The register system has been rejigged in the last week, and some
packages in the Evil ecosystem are already making use of the new vars.

229ebb4ea1
https://github.com/mamapanda/evil-owl/issues/10
2021-04-16 21:53:01 +01:00
Henrik Lissner
06089340f8
Merge pull request #4872 from ymarco/latex
:lang latex improvments
2021-04-16 15:00:12 -04:00
yoavm448
68d1a45034 Key bindings for latex preview 2021-04-16 21:23:43 +03:00
yoavm448
2ee9e3759c More sane defaults for latex 2021-04-16 21:23:42 +03:00
Henrik Lissner
c370a0ba82 Bump :lang scheme
emacs-geiser/geiser@aa26163 -> emacs-geiser/geiser@c5a9aae

With emacs-geiser/geiser@c5a9aae, geiser-impl--add-to-alist is now
autoloaded. This fixes #4863 by preventing void-function errors at
startup or 'doom sync'-time.

But this presents a new problem: geiser-impl is guaranteed to be
needlessly loaded at startup, the first time geiser-impl--add-to-list is
called among, say, geiser-chez's package autoloads. To get around this I
forcibly redefine it as an inline-able function (with defsubst) and
shove this new definition into Doom's autoloads file (where it will
appear before package autoloads).

Since Doom byte-compiles its autoloads file (containing concatenated
autoloads from all doom modules and packages), geiser-impl--add-to-alist
calls (and geiser-activate-implementation calls too, which is already
inline-able) will be inlined, fixing the issue.

Fixes #4863
2021-04-16 12:42:22 -04:00
Henrik Lissner
85d4f96238
Merge pull request #4874 from daanturo/rename-groovy-repl
Fix Groovy REPL's command name
2021-04-16 12:42:01 -04:00
daanturo
a7753dd058 Rename Groovy REPL command
+java/groovy-open-repl -> +java/open-groovy-repl: the old name's format
can't be found via `+eval-open-repl`
2021-04-16 23:22:30 +07:00
Henrik Lissner
193382e2e3 Fix TAB keybind fallthrough 2021-04-15 18:59:38 -04:00
Henrik Lissner
9218473c7c Fix #4865: fix deprecation notice on define-minor-mode 2021-04-15 18:59:31 -04:00
Henrik Lissner
65bc279e59 Fix void-function geiser-impl--add-to-alist errors
Fixes #4869, #4863
2021-04-15 18:59:05 -04:00
Henrik Lissner
ebc5a5ff1e lang/beancount: fix config & more electricity
+ Adds electric alignment of amounts on RET
+ Fixes all of beancount's config (which was running because the package
  is called beancount, not beancount-mode)
+ Fixes flood of "invalid face org-level-N" warnings
+ Fixes beancount-electric-currency for appending currency to unlabelled
  amounts. Also enables this to fall back to first operating_currency in
  document, in available
+ Binds TAB to beancount-outline-cycle on outline heading, otherwise
  indent-according-to-mode. No need for completion popup when company
  already provides this.
2021-04-15 14:19:18 -04:00
Henrik Lissner
437f122969 tools/pdf: suppress "file is large" prompts for pdfs 2021-04-15 14:19:18 -04:00