Commit graph

74 commits

Author SHA1 Message Date
Henrik Lissner
eca387d670
Refactor +lookup/file & update :file handlers
+ Removed idris-mode's file handler. It doesn't do what I thought it
  did.
+ Fix markdown-follow-thing-at-point file handler creating empty buffer.
2020-02-06 16:55:28 -05:00
Henrik Lissner
53f1293955
Bump to seagle0128/grip-mode@1a61bb7
From seagle0128/grip-mode@cbf20fd
2020-02-06 15:19:58 -05:00
Henrik Lissner
06c604503a
Don't auto-fill in latex math/markdonw code blocks
Fixes #2453
2020-02-03 13:28:05 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05: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
b4e0944467
lang/markdown: mention +grip flag in README 2019-10-28 23:23:12 -04:00
Henrik Lissner
133f0d5f30
lang/markdown: improve evil+markdown integration 2019-10-19 01:46:46 -04:00
Henrik Lissner
875225cdd9
lang/markdown: minor refactor
And remove README.markdown support. What madman uses that extension?
2019-10-18 17:26:13 -04:00
Henrik Lissner
75715e4e93
lang/markdown: add github header & css to previews 2019-10-18 17:26:04 -04:00
Akhil Wali
84843d6f1e Fix markdown-preview bindings in docs 2019-10-19 10:16:53 +13:00
Akhil Wali
ed71b9fa43 Add grip-mode for live GF markdown previews 2019-10-19 10:16:33 +13:00
Henrik Lissner
33110e9ebe
lang/markdown: add edit-indirect package #1909
Fixes markdown-edit-code-block (on C-c '), which tries to install the
package via package.el, but will obviously fail because Doom doesn't use
package.el.
2019-10-17 02:36:19 -04:00
Henrik Lissner
51973dca9b
Move auto-fill-mode to text-mode-hook 2019-10-14 18:25:02 -04:00
Henrik Lissner
051bceb0a8
Refactor localleader keybinds #1270
Introduces a select few of the localleader keybind standards proposed in
issue #1270, corrects a few typos and introduces more localleader
keybinds in general.

Co-authored-by: yuhan0 <>
2019-10-04 22:04:47 -04:00
Henrik Lissner
778c7c4244
Fix #1750: errors while exporting markdown
Now runs the exporters directly, rather than through shells. Also fixes
"This document format requires a nonempty..." errors with pandoc
exporter.
2019-09-05 14:05:27 -04:00
Henrik Lissner
81ee250c09
Minor refactor & revision across the board 2019-09-03 00:59:46 -04:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
3595ff62ee
lang/markdown: refactor & reformat autoloads file 2019-07-22 02:37:45 +02:00
Henrik Lissner
3ef05d95ca
lang/markdown: fix TAB/S-TAB keys for evil users
They were being masked by the default tab/shiftab keybinds in
config/default.
2019-07-22 02:37:44 +02:00
Henrik Lissner
fc4ebb1b85
lang/markdown: don't misinterpret first line as front matter 2019-07-22 02:37:44 +02:00
Henrik Lissner
6153af9594
lang/markdown: only warn if all compilers are unavailable
Rather than check each individual module.
2019-07-14 00:24:09 +02:00
Henrik Lissner
9a02bd8ac8
Minor refactors across the board
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
chrunchyjesus
9bf47e2c96
fix spelling 2019-05-22 17:23:31 +02:00
Henrik Lissner
6f41a592d4
lang/markdown: remove boilerplate 2019-05-21 17:29:17 -04:00
Henrik Lissner
e96205ed9f
lang/markdown: add README 2019-05-21 17:24:23 -04:00
Henrik Lissner
768ebda95b
lang/markdown: add multimarkdown compiler support 2019-05-21 17:24:23 -04:00
Henrik Lissner
b1e23238e6
lang/markdown: generalize markdown compile fn
So it can be used with the original perl script, discout, or the renamed
executable on MacOS.
2019-05-21 17:24:23 -04:00
Henrik Lissner
ece2f86480
lang/markdown: remove vestigial pandoc-mode 2019-05-21 17:24:23 -04:00
Henrik Lissner
4c9a3dd191
lang/markdown: remove +pandoc
The new default for markdown-command will try pandoc, if it is
available. This makes pandoc-mode redundant. The mode also doesn't quite
belong to the markdown module.
2019-05-20 21:09:10 -04:00
Henrik Lissner
a6ebd95aee
lang/markdown: fix doctor's executable detection 2019-05-20 21:09:10 -04:00
Henrik Lissner
30319d1c3e
lang/markdown: auto-resolve build & open programs
Markdown-mode will now auto-detect a markdown compiler when you use
markdown-preview (SPC m b). It will try marked, pandoc and markdown, in
that order.

As for markdown-open, it will now use "open" on MacOS and "xdg-open" on
Linux, by default.
2019-05-18 00:53:39 -04:00
Henrik Lissner
77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
Henrik Lissner
d3784a0074
lang/markdown: remove opinionated formatting
Don't adjust line-spacing or fill-column, this interferes with global
defaults as is too opinionated.
2019-04-04 16:47:52 -04:00
Henrik Lissner
da02fa8c38
lang/markdown: add markdown-command check 2019-03-30 02:17:52 -04:00
Henrik Lissner
cdd6587450
lang/markdown: only bind meta keys in insert mode
Fixes #1241
2019-03-11 13:19:25 -04:00
Henrik Lissner
7c9e96da87
General module refactor 2019-03-02 02:04:11 -05:00
Henrik Lissner
da9c4802eb
Fix wrong-number-of-args from +markdown/insert-del 2019-03-02 01:35:00 -05:00
Henrik Lissner
db2949ff32
Improve flyspell support
+ Make flyspell more selective about what to scan in markdown buffers.
+ Don't mark duplicates when proseline or langtool are present.
+ Add set-flyspell-predicate! for seeing mode-specific word predicates.
2019-02-26 16:55:28 -05:00
Henrik Lissner
4daa9271a0
Introduce general.el & rewrite map!
+ Now uses an overriding keymap for leader keys, so that it is always
  available, even outside of normal/visual states. In insert/emacs
  states, or in sessions where evil is absent, an alternative prefix is
  used for leader/localleader keys. See these variables:
  + doom-leader-prefix
  + doom-leader-alt-prefix
  + doom-localleader-prefix
  + doom-localleader-alt-prefix
+ Keybinds now support alternative prefixes through the new :alt-prefix
  property. This is useful for non-evil users and non-normal evil
  states. By default, this is M-SPC (leader) and M-SPC m (localleader).
+ Removed +evil-commands flag from config/default (moved to
  feature/evil/+commands.el).
+ config/default/+bindings.el has been split into
  config/default/+{evil,emacs}-bindings.el, which one is loaded depends
  on whether evil is present or not. The latter is blank, but will soon
  be populated with a keybinding scheme for non-evil users (perhaps
  inspired by #641).
+ The define-key! macro has been replaced; it is now an alias for
  general-def.
+ Added unmap! as an alias for general-unbind.
+ The following modifier key conventions are now enforced for
  consistency, across all OSes:
    alt/option      = meta
    windows/command = super
  It used to be
    alt/option      = alt
    windows/command = meta
  Many of the default keybinds have been updated to reflect this switch,
  but it is likely to affect personal meta/super keybinds!

The map! macro has also been rewritten to use general-define-key. Here
is what has been changed:

+ map! no longer works with characters, e.g. (map! ?x #'do-something) is
  no longer supported. Keys must be kbd-able strings like "C-c x" or
  vectors like [?C-c ?x].
+ The :map and :map* properties are now the same thing. If specified
  keymaps aren't defined when binding keys, it is automatically
  deferred.
+ The way you bind local keybinds has changed:

    ;; Don't do this
    (map! :l "a" #'func-a
          :l "b" #'func-b)
    ;; Do this
    (map! :map 'local "a" #'func-a
                      "b" #'func-b)

+ map! now supports the following new blocks:
  + (:if COND THEN-FORM ELSE-FORM...)
  + (:alt-prefix PREFIX KEYS...) -- this prefix will be used for
    non-normal evil states. Equivalent to :non-normal-prefix in general.
+ The way you declare a which-key label for a prefix key has changed:

    ;; before
    (map! :desc "label" :prefix "a" ...)
    ;; now
    (map! :prefix ("a" . "label") ...)

+ It used to be that map! supported binding a key to a key sequence,
  like so:

    (map! "a" [?x])  ; pressing a is like pressing x

  This functionality was removed *temporarily* while I figure out the
  implementation.

Addresses: #448, #814, #860
Mentioned in: #940
2018-12-22 04:14:43 -05:00
Henrik Lissner
5ef94de541 Minor refactor, reformat & comment revision 2018-09-18 21:39:54 -04:00
Henrik Lissner
9684b34389
lang/markdown: fix next/previous link keybinds
They were the other way around.
2018-09-14 09:41:06 -04:00
Patrick Elliott
faf59ff2a9 undo header scaling 2018-07-20 14:23:17 +02:00
Patrick Elliott
8b00a208cf typo 2018-07-20 13:56:04 +02:00
Patrick Elliott
ccd6ceab86 fix typo 2018-07-20 13:54:23 +02:00
Patrick Elliott
75278663cc header scaling 2018-07-20 13:48:02 +02:00
Patrick Elliott
e5afab1e17 math highlighting and org-mode compat 2018-07-20 12:29:44 +02:00
Henrik Lissner
d6461d495b
General & minor reformatting+refactor 2018-07-19 03:40:31 +02:00
HaoZeke
595d9e593c
doctor: Fix error with markdown 2018-06-25 17:41:52 +05:30
Patrick Elliott
5f5732b95b added rudimentary support for markdown compilation via pandoc 2018-06-22 14:02:35 +02:00