Commit graph

3496 commits

Author SHA1 Message Date
Wetlize
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
29059bacbe Remove :shadow keyword from package!
Is redundant with the :includes keyword in straight.el recipes.
2021-05-06 04:27:32 -04:00
Henrik Lissner
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
Henrik Lissner
a7df1f76a4 Bump :lang rust
brotzeit/rustic@d97ec86 -> brotzeit/rustic@ed68fd3

Includes minor refactors
2021-05-03 00:17:16 -04:00
Ralf Beckmann
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
1b132d2e50 lang/org: add ob-elixir 2021-04-29 18:18:17 -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
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
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
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
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
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
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
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
b158215587 lang/java: fail meghanada-mode gracefully if java is absent 2021-04-15 14:19:18 -04:00
Henrik Lissner
c0c42ad0b0 Fix void-variable geiser-implementations-alist at startup
Relevant to #4863
2021-04-15 00:39:21 -04:00
Henrik Lissner
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
Henrik Lissner
09fc756f0d
Merge pull request #4827 from bnjmnt4n/module/lang/zig
Add `:lang zig` module
2021-04-15 00:26:31 -04:00
Henrik Lissner
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
Henrik Lissner
ee1885eb9b Bump :lang ocaml
diml/utop@a5ff52b -> diml/utop@711c246
ocaml-ppx/ocamlformat@448ac7c -> ocaml-ppx/ocamlformat@0ad8d0a
ocaml/dune@a88ce5b -> ocaml/dune@65e04ba
ocaml/merlin@cc17ed6 -> ocaml/merlin@635923d

Fixes #4864 -- merlin-company was moved to its own package.
2021-04-14 23:44:01 -04:00
Henrik Lissner
71d4748bcf Fix #4586: evilifiy org-brain
THese should be upstreamed to evil-collection in some form or another.
2021-04-14 23:43:45 -04:00
Henrik Lissner
0683861f3f Make doom-first-*-hooks trigger less aggressively
This fixes a class of issues where doom-first-file-hook would fire even
for files not opened interactively (e.g. via org-agenda reading agenda
files or helpful scraping definitions from source files).

In instances like these, hooks like find-file-hook or pre-command-hook
are set to nil to speed up this process and reduce noise, but many
packages add to these hooks when they are loaded; these are lost when
their lexical values fall out of scope, leading to odd errors (like the
one in #4759).

Fixes #4759 (again)
First brought up in hlissner/doom-emacs@9f08db8
2021-04-14 23:43:45 -04:00
Henrik Lissner
32cf114dc7 lang/scheme: fix support for scheme implementations
Adds the following flags:

  +chez
  +chibi
  +chicken
  +gambit
  +gauche
  +guile
  +kawa
  +mit
  +racket

Fixes #4863
2021-04-14 23:43:45 -04:00
Henrik Lissner
8a083d1370 Add :lang beancount module 2021-04-14 23:31:13 -04:00
Benjamin Tan
41c0b0b5c1
Bump :lang zig
ziglang/zig-mode@6f10653 -> ziglang/zig-mode@2d0eb23
2021-04-15 11:23:16 +08:00
Henrik Lissner
2cecf3bf84
Minor refactors 2021-04-14 13:30:13 -04:00