Commit graph

67 commits

Author SHA1 Message Date
syl20bnr
d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Maximilian Wolff
6018580958 Make layers activate/deactivate the right version of smartparens
Before layers were sometimes only activating the non strict
version of smartparens. Also some were only disabling
the non-strict version leaving some of the smartparens
advices intact.

With this PR, all layers set the right version of smartparens.
Also if the layer is trying to disable it a standard function
will now take care to disable all versions of smartparens.
2021-03-16 17:47:15 +00:00
Lin Sun
23af0c540a [markdown] remove duplicating code which already exists in "markdown-mode" 2021-02-22 22:01:51 +01:00
Lin Sun
0220101c7f [markdown] fix warning message for #14387 2021-02-20 07:48:06 +01:00
Maximilian Wolff
c24905bf89
[markdown] Fix formating issues introduced in my last commit 2021-02-04 23:21:37 +01:00
Maximilian Wolff
88d09da807
[markdown] Fix syntax issues and revise readme and package.el 2021-02-04 23:02:31 +01:00
sunlin
bc98f0cbb5
[markdown] more document for using markdown-command (#14312)
* [markdown] more document for using marking-command

* Update CHANGELOG.develop

Co-authored-by: Daniel Nicolai <dalanicolai@gmail.com>

* Update layers/+lang/markdown/README.org

Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>

* Update layers/+lang/markdown/packages.el

Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>

Co-authored-by: Daniel Nicolai <dalanicolai@gmail.com>
Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>
2021-02-04 22:45:14 +01:00
Keith Pinson
26a4dc9830 [markdown] fontify code blocks natively: on by default 2021-01-10 20:40:38 +01:00
Maximilian Wolff
344b6a51f7 [markdown] Use valign for table formating if available 2021-01-02 19:39:11 +00:00
Robert O'Connor
82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Aaron Zeng
c0e31e4b8d
Fix up markdown mode specifiers (#13964)
* [markdown] Anchor auto-mode-alist entries

A file named foo.mkd.patch should use diff-mode, not markdown-mode.

* [markdown] Simplify regexp in mode specifiers

Putting k in brackets here has no effect.
2020-09-18 19:29:41 +02:00
Robert O'Connor
50921702a9 [markdown] Add support for mdx files
Closes #11288
2020-04-12 08:47:29 +02:00
Ben Swift
dd9b40b235
[Markdown] add keybinding for markdown-insert-kbd
There's no keybinding for markdown-insert-kbd alongside all the other
markdown-insert-* keybindings, this patch adds one using the same
convention (specifically xk).
2020-02-13 18:35:07 +00:00
AmaiKinono
234c7e7e10 rebind markdown-insert-list-item to M-RET M-RET 2019-06-05 22:28:49 +02:00
AmaiKinono
0fcdf44b34 Add various keycommands to markdown layer. 2019-06-05 22:28:49 +02:00
Boris Buliga
06730f24cc use orgtbl-mode only when org layer is used
1. Fixes #6535 - when org layer is not used, user will see an error upon
   visiting markdown file.
2. Mention orgtbl-mode in readme.
2019-06-02 20:50:51 +02:00
duianto
ee811f7b13 Unify packages list parentheses style
problem:
some layer packages lists have the open and closing parentheses on the same line
as the first and last listed package, but most seem to have them on a separate
lines.

solution:
put the open and close parentheses on separate lines, except for lists with only
a single package, they are written on the same line as the variable name and
parentheses.

fix the lists indentation
2018-11-21 21:35:38 +00:00
duianto
8c76fed136 Hide MMM mode-line indicator
problem: MMM is shown in the mode-line when a .md markdown file is opened.
solution: hide MMM when mmm-mode is configured.
2018-11-21 21:32:44 +00:00
Miciah Masters
ef6e45f30e markdown: Update key bindings for Markdown Mode 2.3
Update key bindings to reflect some changes in Markdown Mode 2.3:

* markdown-exdent-region was renamed to markdown-outdent-region.
* markdown-insert-reference-image (SPC m i I) was folded
  into markdown-insert-image (SPC m i i).
* markdown-insert-inline-link-dwim (SPC m i l) and
  markdown-insert-reference-link-dwim (SPC m i L)
  were replaced by markdown-insert-link (SPC m i l).
* markdown-toggle-markup-hiding (SPC m t m) was added.
* markdown-jump (SPC m RET) was replaced by markdown-do (same).

Note that the documentation listed an incorrect key binding for
markdown-jump; this has been corrected.

* layers/+lang/markdown/packages.el (markdown/init-markdown-mode):
* layers/+lang/markdown/README.org: Update key bindings.
2018-07-27 00:50:17 +03:00
syl20bnr
834c39c2fd Update promotion and demotion conventions and apply them to markdown 2018-06-06 01:15:48 -04:00
Kechao CAI
49b21c4c3c markdown: fix M-h, M-j, M-k, M-l bindings.
These key bindings are very useful in emacs-editing mode and should not be
overwrited.

This fixes #10640.
2018-06-06 00:51:20 -04:00
syl20bnr
ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr
29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
syl20bnr
326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
CeleritasCelery
249efa31de remove org table lighter 2017-10-15 11:08:01 -04:00
Eivind Fonn
7ba2b3ed06 markdown: move function to funcs.el 2017-07-07 11:36:22 +02:00
Eivind Fonn
01d8ce76a1 markdown: make sure to evaluate the ‘mode’ binding 2017-07-07 11:36:03 +02:00
Codruț Constantin Gușoi
edd14b50af Makes all keybindings available in gfm-mode 2017-07-07 11:35:01 +02:00
Swaroop
f20bdfd90f [markdown] add key to toggle checkbox 2017-06-19 13:31:07 -07:00
duianto
0f85e60c29 Update markdown insert link, function renamed
Problem:
The insert link key binding `, i l` shows:
Wrong type argument: commandp, markdown-insert-link

Cause:
The markdown-mode package has renamed the `markdown-insert-link` function to:
`markdown-insert-inline-link-dwim`.

Solution:
Rename the key bindings function name.
Rename documentation to match the function name.
2017-06-14 10:52:08 +02:00
Swaroop
e1ed293987 [markdown] Add key bindings to toggle features, esp. hidden urls 2017-06-12 12:34:19 +02:00
Eivind Fonn
a5e6509695 Wrap markdown :mode as list 2017-05-23 11:00:09 +02:00
Han Wang
fbb5908a3e Render Madoko document using markdown mode
Madoko is a fast markdown processor with a special .mdk extension
from microsoft research. emacs should use markdown-mode to render
a .mdk file as markdown file.
2017-05-23 10:58:50 +02:00
Eivind Fonn
3dde988212 Lambda -> named function 2017-05-18 18:20:05 +02:00
Codruț Constantin Gușoi
59d45d10d8 Fixes org table cleanup 2017-05-18 18:16:48 +02:00
syl20bnr
17ac76869c chrome: define markdown key bindings for gmail-message-mode 2017-05-07 22:02:03 -04:00
syl20bnr
afcef9e34f markdown: suppress mmm-global-mode
had bad side effects on magit buffers, like removing faces etc...
2017-05-01 12:51:10 -04:00
syl20bnr
4fd895a917 markdown: cleanup auto-modes for mmm and add support ini files 2017-04-29 11:08:03 -04:00
Christian Brassat
7fc758e3c2 markdown-mmm-auto-modes defines pairs of language and mode names
where the mode name is different from the language name
2017-04-29 10:57:04 -04:00
Christian Brassat
7caa91bf6c Credit where credit's due 2017-04-29 10:55:16 -04:00
Christian Brassat
e3307d0b17 Generate mmm-modes automatically based on a list.
Includes a config variable for use in `dotspacemacs-configuration-layers`
2017-04-29 10:55:12 -04:00
Christian Brassat
1f9fd7077e Add markdown-scala support to MMM
Fixes  #6571
2017-04-29 10:52:42 -04:00
Codruț Constantin Gușoi
be33df7dc8 Fixes keybindings for gfm-mode 2017-04-17 21:49:20 -04:00
Codruț Constantin Gușoi
6b4900940f Fixes markdown org table saving 2017-04-17 19:48:13 -04:00
syl20bnr
cbab7cac59 markdown: add SPC m i t key binding to instert toc 2017-02-09 17:02:50 -05:00
syl20bnr
fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr
74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
syl20bnr
5d73a500c0 markdown: hide MMM linter in mode-line 2016-12-19 10:50:14 -05:00
syl20bnr
cb98c42ed8 markdown: correctly enable mmm-mode and add support for ini files 2016-12-19 10:46:46 -05:00
Robert O'Connor
8aa42a0719
Enable orgtbl-mode in markdown-mode
This makes working with tables much nicer.
2016-10-03 21:12:23 +03:00