Commit Graph

3703 Commits

Author SHA1 Message Date
8882f4a994 Merge pull request #4980 from rushsteve1/elixir-improvments
Improve Elixir module keymaps
2021-05-10 04:54:27 -04:00
a1fdc77dc1 lang/org: fail gracefully on org-roam-mode failure
Otherwise throws an error immediately when opening any org file, if
org-roam isn't properly set up from the get go.
2021-05-09 20:50:23 -04:00
efb8943568 :lang clojure: Add some links and details 2021-05-08 16:52:27 -04:00
0a2ed4d346 lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a
Otherwise it will make Emacs to error with (void-variable sym) error when
checking the variable.
2021-05-06 13:04:15 +03:00
b63441387b lang/emacs-lisp: don't use risky-local-variable-p
It's hardcoded to return t for symbols that end in any of '-command',
'-frame-alist', '-function', '-functions', '-hook', '-hooks', '-form',
'-forms', '-map', '-map-alist', '-mode-alist', '-program', or
'-predicate' -- which I think is excessive next to a safety check.

I'll trust that: if the user marks X as safe, and it isn't *explicitly*
marked risky, and it destroys the universe, then it's their fault, not
mine, not Emacs'.
2021-05-06 04:27:33 -04:00
464ce5ec02 Bump :lang java
emacs-lsp/lsp-java@542aaf1 -> emacs-lsp/lsp-java@9685334
mopemope/meghanada-emacs@1e41f7f -> mopemope/meghanada-emacs@6c57e8a

Fixes #4979: corrected download url in mopemope/meghanada-emacs#177
2021-05-06 04:27:33 -04:00
29059bacbe Remove :shadow keyword from package!
Is redundant with the :includes keyword in straight.el recipes.
2021-05-06 04:27:32 -04:00
1197d640f1 Defer adding to LSP ignore list
It was attempting to add to the LSP list too early and erroring,
this adds an after! call to make it wait
2021-05-05 12:33:33 -04:00
7955234308 Improve Elixir module keymaps
Added more major-mode keymappings to expose more of the functionality of
Alchemist.el to the user and generally make the Elixir mode a lot more
useful feeling.
2021-05-04 18:15:42 -04:00
e68c83fd4e Remove unneeded entry in org-babel-tangle-lang-exts
Also the source of a regression (causing void-variable
org-babel-tangle-lang-exts errors).

Fixes #4970
Closes #4971
2021-05-03 13:27:20 -04:00
a7df1f76a4 Bump :lang rust
brotzeit/rustic@d97ec86 -> brotzeit/rustic@ed68fd3

Includes minor refactors
2021-05-03 00:17:16 -04:00
275f1a33f3 Prevent okular from stealing focus
Pass the "noraise" flag to okular if it is used as a Latex viewer. If an
okular instance is already displaying the Latex compilation result,
subsequent invocations won't make okular steal focus from Emacs.
2021-05-02 21:33:20 +02:00
8bb54a95f6 Add +org-present-hide-first-heading option
Gives the user the option to hide the top-level heading when presenting,
and defaults it to nil, since that is org-tree-slide-mode's default
behavior.

Also reduces the default text-scale for org-tree-slide-mode from 6 -> 5.

Fixes #2182
Closes #4907
2021-05-01 03:02:52 -04:00
a80f13f626 Prevent extra window after +org/export-to-clipboard
org-export-to-buffer opens a preview window. This command doesn't need
that, so we inhibit it.

Closes #4911
2021-05-01 02:28:44 -04:00
0b2415e8bf Merge pull request #4890 from hugonobrega/develop
fix and add keybinds in :lang scheme, with descriptions
2021-05-01 02:02:32 -04:00
4ad1c6a494 Merge pull request #4926 from Janfel/fix-emacs-lisp-module-at-point
Reimplement +emacs-lisp--module-at-point to fix #4896
2021-05-01 01:42:38 -04:00
a974a7c89d Merge pull request #4938 from jmhammond/develop
lang/latex: Remove the -g background flag on Skim.app to foreground the viewer
2021-05-01 01:41:10 -04:00
a7e01e0574 Merge pull request #4941 from HyunggyuJang/fix/org-pretty-cookie
lang/org: cleanup `+pretty` feature, mostly just adding `if` cookie
2021-05-01 01:40:26 -04:00
1b132d2e50 lang/org: add ob-elixir 2021-04-29 18:18:17 -04:00
3a4024e790 Merge pull request #4943 from mangkoran/develop
Bump :lang markdown
2021-04-29 13:48:27 -04:00
e8319e4f61 Merge pull request #4912 from 5t111111/bump-lsp-sourcekit
Bump :lang swift
2021-04-29 13:46:00 -04:00
ccf6f0b53d Log unsafe eval forms in file/dir local variables 2021-04-29 13:25:48 -04:00
9d643b14ed Revise comments 2021-04-29 13:25:48 -04:00
90c41564c4 Bump :lang markdown
051734091a -> ac9ea26b94
98d566db76 -> 28552059c4
2021-04-29 00:07:22 +08:00
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
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
acb0399424 Reimplement +emacs-lisp--module-at-point 2021-04-26 00:39:55 +02:00
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
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
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
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
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
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
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
4f50d9a750 Doom style: add blank lines, align keys, change macro expansion keys 2021-04-19 21:08:02 -03:00
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
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
06089340f8 Merge pull request #4872 from ymarco/latex
:lang latex improvments
2021-04-16 15:00:12 -04:00
68d1a45034 Key bindings for latex preview 2021-04-16 21:23:43 +03:00
2ee9e3759c More sane defaults for latex 2021-04-16 21:23:42 +03:00
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
85d4f96238 Merge pull request #4874 from daanturo/rename-groovy-repl
Fix Groovy REPL's command name
2021-04-16 12:42:01 -04:00
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
65bc279e59 Fix void-function geiser-impl--add-to-alist errors
Fixes #4869, #4863
2021-04-15 18:59:05 -04:00
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
b158215587 lang/java: fail meghanada-mode gracefully if java is absent 2021-04-15 14:19:18 -04:00
c0c42ad0b0 Fix void-variable geiser-implementations-alist at startup
Relevant to #4863
2021-04-15 00:39:21 -04:00
40ef70d3ca Merge pull request #4855 from daanturo/python-repl-docsets
Extend Python's docsets to Python REPL
2021-04-15 00:27:16 -04:00
09fc756f0d Merge pull request #4827 from bnjmnt4n/module/lang/zig
Add `:lang zig` module
2021-04-15 00:26:31 -04:00
dab0ec25c1 Bump :lang latex
emacs-straight/auctex@0f3639a -> emacs-straight/auctex@1472d1d

Hopefully fixes "'replace-highlight' is not advised" errors.
2021-04-14 23:56:04 -04:00