Commit graph

51 commits

Author SHA1 Message Date
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
Fabien Dubosson
5df76ed1d1 Fix the loading of vmd for daemon mode
When Spacemacs is used in daemon mode, the `PATH` is not always filled
up with user-defined run paths when Spacemacs load the packages. The
`toggle` of the `vmd` package is checking for the `vmd` executable which
may be in one of the user path, what prevent the package to be loaded,
even if the executable is available at execution time.

If people want to use `vmd`, setting `markdown-live-preview-engine`
should be enough, there is no need for checking for the executable to be
present, this is the responsability of the user to ensure this.
2016-07-05 00:23:16 -04:00
syl20bnr
ea77a5d764 markdown: new layer variable markdown-live-preview-engine 2016-06-06 23:39:41 -04:00
Jeremy Bi
c267c36be1 Add vmd support in markdown mode 2016-06-06 23:01:06 -04:00
syl20bnr
a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
sooheon
15e6290151 Make check for company-mode explicit, not implicit
People may have company-mode installed without necessarily using the
auto-completion layer.
2016-05-27 00:32:05 -04:00
Sebastian Wiesner
bd4fe19d4d markdown: Add binding for live preview mode 2016-04-11 21:00:24 +02:00
panicbit
8afd46a1c1 Add Rust support in markdown files 2016-02-23 20:48:13 +01:00
rustyplanet
4265e0e35c make curly braces optional for the R language indication in markdown 2016-01-13 00:42:59 -05:00
rustyplanet
1bff8a2f61 add ESS (R-mode) support to markdown files 2016-01-13 00:42:59 -05:00
Alejandro Catalina Feliú
1ec305463d Add javascript support on markdown
Enable syntax highlighting.
2016-01-11 21:45:13 -05:00
syl20bnr
046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
justbur
9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
Eivind Fonn
405dc6600d Restore alphabetical order in markdown doc 2015-10-25 11:01:08 +01:00
Sebastian Wiesner
b8846361ad Add binding for markdown GFM code blocks
Also declare prefixes for markdown keys
2015-10-21 17:04:16 -04:00
syl20bnr
f21d1bb6e8 markdown: move SPC mcr to gh-md init function 2015-09-29 21:41:58 -04:00
Tommi Komulainen
81f6ab4dc2 markdown: include missing gh-md package
Needed for `SPC m c r` (gh-md-render-buffer) command. Fixes #3192
2015-09-29 21:37:32 -04:00