Commit Graph

2352 Commits

Author SHA1 Message Date
Henrik Lissner
b7c5152f3a lang/org: C-M-RET = org-insert-subheading 2020-01-06 16:21:22 -05:00
Henrik Lissner
14552bc66b Fontify latex script & entities in org-mode 2020-01-05 21:17:34 -05:00
Henrik Lissner
d18e298a9e Merge pull request #2300 from sunesimonsen/patch-1
Fix source code highlighting when using marked.js
2020-01-05 20:10:51 -05:00
Henrik Lissner
55d9df3c39 Merge pull request #2306 from brotzeit/fix-message
Fix typo in rustic setup message
2020-01-05 20:09:57 -05:00
Henrik Lissner
cd3f1399af Fontify latex blocks natively 2020-01-05 19:08:11 -05:00
Henrik Lissner
ee4358a243 Simplify org-format-latex-options setting
Due to changes upstream, all that isn't necessary anymore.
2020-01-05 17:47:29 -05:00
brotzeit
8bed16eb72 fix message 2020-01-04 12:49:43 +01:00
Sune Simonsen
580de0be1f Fix source code highlighting when using marked.js
I'm currently experiencing problems getting the source code highlighting to work with https://github.com/markedjs/marked

The reason is that Marked outputs the following structure:

```html
<pre><code class="language-js">const hello = 'world';</code></pre>
```

and the current selector expects the `pre` tag to have a `lang` attribute. 

This PR splits the forwarding of the `lang` attribute to a class and the code that initialise the highlighting for each block. It will try to initialise the highlighting for every `code` block that is inside a `pre` tag.
2020-01-03 17:19:44 +01:00
Henrik Lissner
6523f6a12e Move cpp-mode{,-map} aliases to autoloads
They don't need to be in config.el
2020-01-03 05:49:43 -05:00
Henrik Lissner
195dfda045 Minor refactors & comment revision 2020-01-02 21:16:02 -05:00
Henrik Lissner
a9763fe76b Fix vestigial reference to +org-attach/uri 2020-01-02 16:22:52 -05:00
Henrik Lissner
647750c18c Add org heading support to bookmark.el 2020-01-02 04:52:30 -05:00
Henrik Lissner
13e2eefae1 Move org-id-locations-file to org-directory
It makes more sense to store this file where you keep your org files,
rather than in Doom's .local files, which could be deleted for
debugging, or local only to a specific machine.

Also make ID links relative to org-directory, in case you use the same
org library on a different system with different filesystem
layout/system of symlinks.
2020-01-02 04:52:30 -05:00
Henrik Lissner
d84df72364 Dumb indent on TAB when in middle of subtree 2020-01-01 21:19:22 -05:00
Henrik Lissner
07823d00a7 Fix yasnippet expansion in org src blocks
This is hacky, and causes weirdness with org-bullets-mode, but it works.
2020-01-01 21:19:22 -05:00
Henrik Lissner
5929e5b75a Add undefadvice! macro for rotate-text convenience 2020-01-01 19:34:33 -05:00
Henrik Lissner
33701ea407 Prevent packages from pulling in org
org-plus-contrib already satisfies that dependency.
2019-12-31 19:11:16 -05:00
Henrik Lissner
960d756b47 General, minor refactors 2019-12-30 18:23:56 -05:00
Henrik Lissner
b9f90b3a1a lang/org: clear src block results on TAB
When cursor is inside a src block. e.g.

  #+BEGIN_SRC elisp  <-- not here
  (message "hi")     <-- in here
  #+END_SRC          <-- not here
2019-12-30 00:07:19 -05:00
Henrik Lissner
db9bc763ef Remove redundant straight-fix-org setting
Already exists in core-packages.el
2019-12-29 19:24:55 -05:00
Henrik Lissner
14cf97e594 lang/org: use org-attach instead of custom system
- Adds more keys under `<localleader> a`
- Reconfigures org-download to use org-attach system
- Make org-id-track-globally = t a global default now (not just for
  org-brain)
- Renamed +org-init-centralized-attachments-h to +org-init-attachments-h
- org-attach-store-link-p = t (stores a link to an attachment when it is
  attached)
- org-attach-use-inheritance = t (inherit attachment properties from
  parent nodes)
2019-12-29 16:31:25 -05:00
Henrik Lissner
dafa4deef4 lang/python: autoload lsp-python-ms setup/update commands
And set lsp-python-ms-python-executable-cmd a little sooner, to make it
easier for folks to change.
2019-12-28 13:52:15 -05:00
Henrik Lissner
566d54d984 Disable continue-comments-on-RET in ess-r-mode & coq-mode
Fixes #2081, #2233
2019-12-27 13:32:24 -05:00
Henrik Lissner
e5fa19ea2d lang/emacs-lisp: fix wrong-num-args error on doc lookup 2019-12-27 04:44:20 -05:00
Henrik Lissner
0be4972257 Merge pull request #2254 from r-darwish/java-workspace
lang/java: move lsp-java-workspace-dir to doom-etc-dir
2019-12-26 15:11:02 -05:00
Henrik Lissner
5c45a9eff9 Fall back to typescript-mode for *.tsx #2252 2019-12-26 15:00:44 -05:00
Roey Darwish Dror
1c7ba9d2cb Set the directory for the Java LSP workspace 2019-12-26 14:31:51 +02:00
Henrik Lissner
fe1642e854 Add special goto def/docs support in doom! blocks
- Pressing gd on a module in your doom! block will now browse that
  module's directory.
- Pressing K on a module will jump to that module's documentation, if any.
- Pressing K on a module flag will jump to that flag's description
  within that module's documenation.
- This is now explained in init.example.el

Closes #2249
2019-12-26 01:41:45 -05:00
Henrik Lissner
44fcbb52dc Change format of doom-large-file-size-alist
Instead of mapping major modes to file size thresholds, it maps file
regexps (like auto-mode-alist) since the major mode cannot be known
before set-auto-mode is called (in after-find-file).
2019-12-25 02:13:53 -05:00
Henrik Lissner
14c87e6943 lang/org: fix some ob packages not loading #2241 2019-12-24 16:40:57 -05:00
Henrik Lissner
4d5459699a Merge pull request #2232 from ashiklom/ess-cleanup
lang/ess: fix deprecated variables
2019-12-24 14:35:33 -05:00
Henrik Lissner
a28de332fc lang/kotlin: add basic README #1166 2019-12-24 13:09:14 -05:00
Alexey Shiklomanov
29905c1496 Fix deprecated ESS variables
- `ess-smart-S-assign-key` and `ess-expression-offset` are deprecated variables
- `ess-default-style` has been replaced with `ess-style`
2019-12-23 16:34:43 -05:00
Henrik Lissner
5ecf206681 lang/org: remove select-frame-set-input-focus hack
Thanks to 3583e1f2e, this is no longer necessary.
2019-12-22 23:53:04 -05:00
Henrik Lissner
213a6fda86 General refactors & reformatting 2019-12-22 23:53:04 -05:00
Henrik Lissner
327d359fd3 lang/python: silence errors when python isn't present 2019-12-22 23:53:04 -05:00
Henrik Lissner
56ccb0dbef lang/org: load jupyter.el & add jupyter-* to org-src-lang-modes #2198 2019-12-22 00:02:26 -05:00
Henrik Lissner
a0425d0df7 lang/rust: add eglot docs & inhibit package.el usage #2195 2019-12-21 14:15:20 -05:00
Henrik Lissner
a15ab4a3f2 lang/web: add bang to :enhtml & :dehtml
BANG = copy result to clipboard instead of inserting into buffer.
2019-12-20 23:04:07 -05:00
Henrik Lissner
27cabea6b6 Fix gs in org-mode #2218
Also makes +evil/easymotion generic; it can now be moved to any key, and
new keys can be added to the <easymotion> event, rather than having to
wait for evilem-map to become available.

Also fixes +org/goto-visible if used before avy is loaded.

Relevant to #1672
2019-12-20 13:40:06 -05:00
Henrik Lissner
494e431f04 lang/org: install org-brain
Whoops!
2019-12-20 02:44:20 -05:00
Henrik Lissner
73d975de6c lang/org: make C-RET create headings instead of error 2019-12-20 02:13:11 -05:00
Henrik Lissner
322bca710a General refactors & reformatting 2019-12-20 00:59:52 -05:00
Henrik Lissner
f561abff64 Merge pull request #2205 from niklascarlsson/update_doctor_prescription
lang/plantuml: update doctor prescription
2019-12-19 18:47:00 -05:00
Henrik Lissner
52f04619a4 Merge pull request #2210 from jhacksworth/clojuredocs
lang/clojure: grimoire -> ClojureDocs
2019-12-19 18:46:03 -05:00
Henrik Lissner
9647cb0a49 lang/org: add +brain feature
No keybinding yet.
2019-12-19 18:42:37 -05:00
Henrik Lissner
95e80b00da lang/org: also require jupyter-* libs w/ ob-jupyter
Relevant to #2198
2019-12-19 18:42:05 -05:00
Henrik Lissner
c81b8445c4 lang/org: activate ob-ammonite on amm blocks
Instead of scala blocks.
2019-12-19 15:04:05 -05:00
Henrik Lissner
bc44ae0beb lang/org: add ob-ammonite 2019-12-19 14:51:34 -05:00
Henrik Lissner
af948ca390 lang/org: refactor babel loaders & fix jupyter loader #2198 2019-12-19 14:48:13 -05:00