Commit graph

2575 commits

Author SHA1 Message Date
syl20bnr eef1a87e98 Fix evil-search module activation
The search module must be set before requering evil otherwise the variable is
set but it has not effect and `isearch` module is the active module.
2017-02-07 16:53:33 -05:00
deb0ch cfcdb4dabc fix evil-search enabling in evil-state (c7e47de)
There was an error on startup saying that hybrid-mode-use-evil-search-module was
void as a variable.
2017-02-07 16:36:02 -05:00
syl20bnr b53a8957a1 github: add magithub
to opt-out simply add magithub to the dotspacemacs-excluded-packages variable
2017-02-06 22:48:38 -05:00
syl20bnr 4ab741b1da Fix error global-linum-mode-check-buffers wrong type error
Check dotspacemacs-line-numbers type before getting any keyword value.
Fixes #8318
2017-02-06 08:56:16 -05:00
syl20bnr 3f38ab0a51 line-numbers: fix spacemacs/enable-line-numbers-p
Fix the condition by moving the check for file size.
2017-02-05 23:49:17 -05:00
syl20bnr d5d80eb1a1 line-number: fix backward compatibility
There was an error in `linum-on` when `dotspacemacs-line-numbers` was set to
`'relative`.

- new function `spacemacs//linum-backward-compabitility` to test for old
supported values.
- Use an :around advice for `linum-on` instead of redefining it.
- move linum init time config to `:init` section of `use-package`
- fix relative linum initialization by testing if `dotspacemacs-line-numbers` is
  a list first.
2017-02-05 13:50:50 -05:00
syl20bnr ddfb996b20 line number: broke enable-p condition into functions
Also remove the docstring about SPC h SPC as it is already implied for the other
options in the dotfile.

Note that this commit modifies one condition, namely disabled mode condition.
It removes the first test:

    (not (spacemacs/mplist-get dotspacemacs-line-numbers :enabled-for-modes))

as it is not necessary since we have a `or` in the enable-p condition. Disabled
modes will be checked only if the current major mode is not explicitly enabled
(as intented).
2017-02-05 13:10:30 -05:00
deb0ch c346c7dc99 nlinum: activating nlinum-relative now activates nlinum
reflect ddbee36.
2017-02-05 12:47:23 -05:00
deb0ch a28e17c4d3 line numbers: finer configuration of line numbers activation 2017-02-05 12:47:19 -05:00
syl20bnr ae9a088d19 core: Fix typo 2017-02-05 12:28:03 -05:00
syl20bnr c7e47de938 evil: enable evil-search search module in evil state.
Add new hybrid variable hybrid-mode-use-evil-search-module to switch evil
search module to its own which is closer to Vim. Default is nil.

Fixes #5101
2017-02-03 19:36:19 -05:00
syl20bnr d3bd29997a sphinx: add missing key bindings to README 2017-02-03 11:53:28 -05:00
syl20bnr d1d58ef9f4 sphinx: add new conventional command under , c and add , g c
New functions in rst-sphinx:
- rst-sphinx-find-conf-py-path
- rst-sphinx-open-conf
- rst-sphinx-clean
- rst-sphinx-rebuild

Modified functions:
- rst-sphinx-compile takes now an optional argument to clean the project
- rst-sphinx-find-conf has been renamed to rst-sphinx-set-variables and now use
rst-sphinx-find-conf-py-path function

New key bindings:
- "cc" --> rst-sphinx-compile
- "cC" --> rst-sphinx-clean
- "cr" --> rst-sphinx-rebuild
- "gc" --> rst-sphinx-open-conf
- "o"  --> rst-sphinx-target-open)))
2017-02-03 11:40:19 -05:00
d12frosted 57e653a221
minor improvements in elixir README file 2017-02-03 11:10:40 +02:00
denin 52ea26a052
elixir: add support for credo
There was no flycheck-credo package in the layer.
Although it was described in documentation, how to install credo.
This commit fixes documentation and adds flycheck-credo package.
2017-02-03 11:09:07 +02:00
syl20bnr e059d9bbeb sphinx: add sphinx logo to README 2017-02-02 15:34:44 -05:00
syl20bnr 6c1f221196 restructuredtext: mention auto-complete-rst to README 2017-02-02 15:01:07 -05:00
syl20bnr 05f7743714 minor copyright year fix 2017-02-02 14:57:14 -05:00
syl20bnr 1cfb90e030 auto-complete: add fuzzy package
Needed for fuzzy completion with auto-complete
2017-02-02 14:56:44 -05:00
syl20bnr 42b2c4a144 restructuredtext: fix auto-complete conflicts with flyspell and linum 2017-02-02 14:56:13 -05:00
syl20bnr a1e63424e2 reST: Extract sphinx specific config to a stand alone sphinx layer 2017-02-02 14:55:18 -05:00
syl20bnr 7ced78089d restrucutredtext: rename deprecated extensions folder to local 2017-02-02 14:37:19 -05:00
syl20bnr 56377cf1b3 Rename ReST layer to restructuredtext and clean up layer
rest can be confusing since there is already a restclient layer.
2017-02-02 09:37:34 -05:00
Wei-Wei Guo 9399de0ddc Add ReST layer 2017-02-02 09:09:31 -05:00
syl20bnr 7d75e651a4 Remove limitation of number of candidates for helm-themes
Fixes #4062
2017-02-02 00:08:59 -05:00
syl20bnr 36044870cb themes-megapack: add missing solarized-theme 2017-02-01 17:27:41 -05:00
d12frosted 3433e94913
fix typo in flymd configs 2017-02-01 19:37:23 +02:00
d12frosted bb3e5c8289
fix go layer headers 2017-02-01 16:06:00 +02:00
d12frosted 2319bdc350
add note about flymd in markdown layer 2017-02-01 16:00:43 +02:00
hodge 621c0e0741
add flymd to chrome layer(a realtime markdown preview) 2017-02-01 15:51:40 +02:00
d12frosted 1a5579db6f
unify transient states
- use `..` for listing
- use 2 spaces between groups
- use 1 space between key binding and action
2017-01-31 18:27:01 +02:00
duianto 640efb8562
Update buffer transient state formatting
Changed the buffer transient states formatting so that it matches
most of the other transient states.

Frontend
Reduced spacing:
- Between the keys and descriptions, from 2 to 1.
- Between both columns, from 4 to 2.

Backend
The first column didn't need the last two "^" (caret) characters.
Changed the last line so that "^^^^" starts below the first column.
2017-01-31 18:27:00 +02:00
duianto e89285dd67
Update window manipulation transient state formatting
Update the formatting of the SPC w .  window manipulation
transient state panel.

Select column
Change "[0-9] window N", to "[0..9] window 0..9",
so that it matches the SPC "0..9 -> window 0..9" and
SPC b "1..9 -> buffer to window 1..9" combined entries.

Split column
Add "i" to the end of "vert", then it'll have the same number
of characters as "horiz", and the text will be aligned.

Resize column
Shorten "horizontally" and "vertically" to "horiz" and "verti",
it reduces the panels width slightly.

Other column
Shorten the horizontal line below the title, so that it matches
the longest key description.

Move [q] quit to the bottom of the column.

All columns
Equalize the horizontal spacing between the columns,
from: 2, 2, 3, 3, to 2 between all columns.
2017-01-31 18:27:00 +02:00
cyberxndr 05d6cc7d9e Fixed ranger layer documentation
Updated entry for "show dotfiles at ranger startup" option.
Old variable had no effect (possibly deprecated)

Updated entry for "show previews literally" option.
Old variable had no effect (possibly mistype)
2017-01-31 18:01:30 +02:00
madhat2r fd0bcf0afc
add madhat2r theme to megapack 2017-01-31 17:59:27 +02:00
Wieland Hoffmann 99cf5750e3
syntax-checking: Mention that flycheck is disabled in emacs-lisp-mode. 2017-01-31 17:59:07 +02:00
Benedek Fazekas 970acddacf Clojure refactor: replace cycle coll with convert to coll
Cycle collection type was recently removed from `clj-refactor` as the
feature was migrated and rewritten in `clojure-mode`. The new feature
lets the user convert a collection into a specific collection type
instead of cycling through them.

To added shortcuts correspond to the shortcuts of this feature in
`clojure-mode` and placed in the refactor submenu.
2017-01-26 12:09:50 +00:00
Ivan Verevkin 5af909ab11
Fix typo for spell-checking readme 2017-01-25 17:01:46 +02:00
syl20bnr 9ac779a2e4 core: import spacemacs-theme into libs
Distribute spacemacs-theme with Spacemacs so we don't need to download the
package of the theme at startup. It was delaying the display of the home buffer.

Now Spacemacs fallback to spacemacs-dark theme if the user theme cannot be
applied. Spacemacs then tries to install and reapply the user theme. If
successful, at the subsequent startups the user theme is applied right away
instead of spacemacs-dark. If the installation failed then we display a warning
informing the user and suggesting some actions.

There is now no package left to be installed manually at the start of Spacemacs.
2017-01-25 00:30:31 -05:00
syl20bnr 973f6fe5ae core: import ido-vertical-mode into core/libs
It provides more intuitive way to display the wizard.
2017-01-23 23:52:57 -05:00
d12frosted ab878bd7ac
update cider keybindings doc 2017-01-23 13:25:48 +02:00
Ivan Plyusnin 15e86700ec
Fix number of arguments in calling cider-test- funcs 2017-01-23 13:21:38 +02:00
syl20bnr 1846984bd0 core: add support for interpreter-mode-alist to layer lazy installation
Update python lazy declaration as an example.
Still need to update the auto-layer.el file for other modes.
2017-01-22 13:41:04 -05:00
syl20bnr a00179c13f Improve spacemacs/count-word-analysis
Also display overview information using regular count-words function.
2017-01-19 17:16:56 -05:00
syl20bnr cf5dac00ad core: move and rename spacemacs//get-package-directory
Move it to core-configuration-layer.el
Rename it to configuration-layer/get-elpa-package-install-directory
2017-01-17 00:20:59 -05:00
syl20bnr 6b6d365b96 Speed up SPC h SPC by moving FAQ source in its own feature
Getting FAQ candidates requires org to be loaded which in turn requires to
load magit (via orgit) etc...

This commit moves the FAQ helm source to a new feature helm-spacemacs-faq and
removes the FAQ source from SPC h SPC so the FAQs are only available as a helm
source via SPC h f.

But we have still the FAQ org file entry in SPC h SPC so it is easy to open
the file from the main help key binding.
2017-01-15 22:19:56 -05:00
syl20bnr c1274fe580 Remove spacemacs-base/helm-spacemacs-deprecated 2017-01-15 22:19:56 -05:00
syl20bnr 3162f0e19b core: factorize code in configuration-layer/make-all-packages 2017-01-15 22:19:56 -05:00
bmag d2168806b6 sort-lines-by-column-reverse: fix wrong call 2017-01-14 22:15:11 +02:00
deb0ch dc36181cba fix window-manipulation and buffer transient states for winum 2017-01-14 17:18:29 +02:00
deb0ch afbff1a943 restore emacs-style window selection bindings 2017-01-14 17:15:58 +02:00
Somelauw aed1594548 Add more bindings to scroll-transient-state
Move scroll bindings to SPC N
2017-01-14 17:08:57 +02:00
duianto e144fde0de update uniquify-lines, uniquify a block selection
An active evil-visual-block selection, uniquified the whole buffer, this
checks either region-active-p or evil-visual-state-p, now it sorts the
selected lines.

The comment was also updated with "a" before "region" and "the" before
"current buffer".
2017-01-14 16:53:05 +02:00
duianto 04ded77199 add sort-lines-by-column, -reverse funcs and keys 2017-01-14 16:52:44 +02:00
duianto e14c29e1df add sort-lines arg, reverse func and key binding 2017-01-14 16:51:54 +02:00
syl20bnr e2fafb88c8 Update generated LAYERS.org 2017-01-12 23:20:56 -05:00
nikolaiam 796fcfaa53 Hide PROPERTIES drawers in space-doc-mode
Hide properties in space-doc-mode to allow the use of `CUSTOM_ID` tags in
documentation for correct link exporting, as discussed in #8054, #8136
and #8138. Complementary the latter two PR:s.
2017-01-12 22:49:15 -05:00
syl20bnr 70c6fcef02 common-lisp: add SPC m h i to inspect a definition 2017-01-12 22:33:09 -05:00
Michał Herda e12f469aa2 Layer common-lisp - set jump handler to SLIME-EDIT-DEFINITION
https://github.com/syl20bnr/spacemacs/issues/8043

"Go to definition" should go to the definition - meaning, where the function is defined in the source code.

I am for changing the default keybinding to `slime-edit-definition` because it fulfills this - allows the user to see the source code for a given function.

`slime-inspect-definition` does not open the source code - it opens the SLIME inspector with the function **object** open in the inspector. While the function **object** contains some valuable data, it does not contain the *definition* itself - which is what the user wants in this case.
2017-01-12 22:29:54 -05:00
syl20bnr 4b8f54ff38 Fix golden ratio for new package winum 2017-01-09 09:13:20 -05:00
ilia acb2d379c0 Fix cider and cider-repl modes in company configuration 2017-01-07 00:21:45 +03:00
Eivind Fonn 3bbeaee2b2 Don’t configure company in init-cmake-mode
This is already taken care of in post-init-company
2017-01-06 12:01:18 +01:00
deb0ch 550821baae
configure xkcd inside the :init progn clause 2017-01-06 06:49:29 +02:00
syl20bnr b296a93929 ymcd: simplify eldoc integration
ycmd-eldoc is not a package, it is a feature provided by ycmd package.
Use regular post-init mechanism to setup eldoc.
2017-01-05 23:13:45 -05:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
d12frosted a1fcb13803
fix spacemacs|add-company-backends usage example 2017-01-05 08:59:27 +02:00
zilongshanren c22991d587
remove un-intended quote in company-anaconda 2017-01-05 08:58:01 +02:00
d12frosted 0d6c378a51
improve ledger-reconcile-toggle key binding
Actually, revert @jgertm's change that I asked to make. As @bmag explained, this
is very useful key binding that is similar to C-c C-c as it allows to quickly
access functionality by pressing `dotspacemacs-major-mode-leader-key` twice.
Also note that `dotspacemacs-major-mode-leader-key` can be nil, that's why we
have to handle this value as well.
2017-01-05 07:57:46 +02:00
Brent Taylor 1ff7c10f19
Fix python path with virtualenv on Windows in Python nose package 2017-01-04 22:38:25 +02:00
Saulius Menkevičius 414396595b
Fix issue with jump handler in omnisharp-mode where the handler is async
This fixes an issue where default jump handler, like dump-jump-go runs
in sync and omnisharp-go-to-definition is not able to actually go to
definition until it completes thus slowing down the completion process.

A similar issue (for C++) was fixed in syl20bnr/spacemacs#6904
2017-01-04 22:35:45 +02:00
d12frosted 2581058a49
add xkcd buffer to list of useful buffers
Fixes #7280
2017-01-04 22:29:18 +02:00
Steven Allen 9fb2634817
Fix eldoc initialization in typescript layer. 2017-01-04 22:04:25 +02:00
Tim Jaeger cc4aa59d08
Add keybindings for ledger account reconciliation 2017-01-04 21:55:32 +02:00
Nikolai Myllymäki 1899666592
Show correct headline for beginners tutorial in SPC h SPC 2017-01-04 20:26:48 +02:00
deb0ch ae81e00db6
use winum.el for window numbers
winum.el is an heavily extended and partly rewritten version of
window-numbering.el.

Among other things it allows window numbers to be shared across frames,
thus improving multi-screen user experience.
2017-01-04 19:33:13 +02:00
Nir Friedman daa1e33f55
Add binding for jump to def'n other window 2017-01-04 19:30:58 +02:00
deb0ch 04c632939a
harmonize switch-to-scratch-buffer and switch-to-messages-buffer 2017-01-04 19:28:38 +02:00
deb0ch 352c76ca72
switch-to-scratch-buffer with prefix arg opens in other window 2017-01-04 19:28:33 +02:00
Aaron Jensen 10c59bb142
ivy: Add C-c C-e to edit counsel-ag search results 2017-01-04 19:26:33 +02:00
Nir Friedman 0dfafc7604
Add ycmd-eldoc to ycmd layer 2017-01-04 19:25:08 +02:00
syl20bnr 8ee74b6925 Remove debug message :-) 2017-01-02 11:12:43 -05:00
syl20bnr c558833e08 More robust fix for error ‘fuzzy-match’ not supported in async sources
Fixes #8094
2017-01-02 11:10:07 -05:00
syl20bnr a5ac11b832 Fix helm :config: ‘fuzzy-match’ not supported in async sources.
Fixes #8091
2017-01-02 01:36:15 -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 bdd4e6c23f typescript: move eldoc config to init function 2017-01-02 00:12:51 -05:00
syl20bnr c725823e73 javascript and react: reformat code and move funcs to funcs.el
Some conventional cleanup.
Note that the function `spacemacs/js2-refactor-set-key-bindings` has been
removed since it is not used anywhere.
2017-01-01 22:45:23 -05:00
syl20bnr ab34cc2d9d html: set company min. prefix length to 0 for company-web backend
for more info: https://github.com/osv/company-web/issues/4
2016-12-31 00:14:30 -05:00
syl20bnr e1efeea5d6 html: fix addition of company backends
Move add-company-hook calls to correct init functions (only css backend is from
company package, the others are from company-web).

Correctly add company backends for jade and slim. Jade has been renamed to
Pug , there is no guarantee at all that jade references still work. To check.
2016-12-31 00:01:58 -05:00
ralesi 81b782e5df company-web: defer company-web loading 2016-12-30 23:23:43 -05:00
Nir Friedman 946f14e0d3
Overhaul buffer transient state
- add new bindings to move and swap buffers, and switch active window,
   by number
 - change kill buffer shortcut to d for consistency
 - Change docs appropriately
2016-12-28 21:56:18 +02:00
d12frosted d76c5a75d5
repalce fill-or-unfill with unfill package 2016-12-27 09:57:49 +02:00
Koray Al aaefaa3573
Added auto load virtualenv support via .venv file
The `pyvenv-mode` doesn't provide a list of available virtual
environments. So it's not currently possible to check if the
provided virtualenv name is available
2016-12-27 09:55:28 +02:00
duianto 7021490b61
update select-current-block, reduce code
Removed the variable p2, it was defined and assigned, but never used.
Removed two progn expressions that wasn't needed.

Implemented bmag's suggestions:
Changed "if" to "when", and removed a superflous p1 assignment.
2016-12-27 09:52:24 +02:00
Adel Qalieh 8e7fe6e1f2
Add keybinding for spacemacs/alternate-window
spacemacs/alternate-window was suggested to switch between the last selected
window, or the window-analog of SPC TAB (spacemacs/alternate-buffer). This is
part of a larger family of functions, such as spacemacs/jump-to-last-layout on
SPC l TAB and eyebrowse-last-window-config on SPC l w TAB.

Resolves #7845
2016-12-27 09:50:10 +02:00
ralesi 703733b46b Speedup: defer loading of helm-purpose. Requires all of purpose. 2016-12-24 21:03:52 +02:00
duianto f5cfa4ad17 replace 9 buffer-to-window entries with one 1..9
Resolves #8038
This replaces the <kbd>SPC b</kbd> buffer-to-window 1 to 9 entries, with just one 1..9 > buffer to window 1..9.
2016-12-24 21:02:53 +02:00
smile13241324 2b8db7c3ad Add evil keybinding "i a" for org-attach 2016-12-24 21:01:43 +02:00
Liu Xiang 8a68ae1d80 Use raw prefix argument instead numeric prefix argument 2016-12-24 20:54:42 +02:00
syl20bnr a5c87776d1 emacs-lisp: fix eval-last-sexp and add SPC m e C
Important evil advices for eval-last-sexp were removed for smartparens users,
it made eval-last-sexp not working correctly in normal state by evaluating the
sexp before the evil cursor and it was impossible to evaluate an sexp when the
cursor was on the last character of a line.

Also add SPC m e C which will execute the first defun or setq sexp encountered
before point.
2016-12-24 12:06:17 -05:00
Michal Muskala 831b01fd8e
Prevent from inserting too many "end"s in Elixir
Closes #8030
2016-12-23 14:02:52 +02:00
Nir Friedman bca0e4b6f6
Use helm ag file with interactive input 2016-12-22 17:47:58 +02:00
d12frosted 3e60792136
ivy delete file with confirmation 2016-12-22 15:53:28 +02:00
ralesi 1c8cb4a58c
Delete alternate actions is too invasive 2016-12-22 15:52:57 +02:00
d12frosted d3fd067a3d
defer flyspell-correct packages loading 2016-12-22 15:35:13 +02:00
ralesi 29925a0b94
Defer loading of flyspell-correct-helm, otherwise it just requires helm 2016-12-22 15:33:41 +02:00
Francesc Elies Henar 67dda61031
adds evilified-state-evilify-map binding <gf> 2016-12-21 22:24:24 +02:00
Francesc Elies Henar b87e6edf34
adds revert buffer binding 2016-12-21 22:20:37 +02: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
Alex Palaistras a9dd47691e
dumb-jump: Specify selector from completion framework used
This commit adds a conditional which allows `dumb-jump` to use a selector
matching the current completion framework used (`ivy` or `helm`), instead
of the default popup. This relates to work done for adding Helm support
to `dumb-jump` here: https://github.com/jacktasia/dumb-jump/pull/96

The motivation behind this is two-fold: the fact that popups are known
to be broken when used with conflicting packages, such as `fci-mode` for
showing a column marker, and the need for better completions with the
possiblity for fuzzy-matching. This should hopefully lead to a more
consistent experience as well.
2016-12-18 11:47:56 +02:00
duianto b3abf4269d
add function comment, evil goto next line indent
`spacemacs/evil-goto-next-line-and-indent` doesn't have a function comment, this corrects that.
2016-12-18 11:45:02 +02:00
Corey Grunewald b67118c8ca
Mark tern command as async. Fixes #7591. 2016-12-18 11:44:32 +02:00
syl20bnr 533b80fecf ansible: temporary hack to fix modified buffer on decryption 2016-12-16 09:17:05 -05:00
syl20bnr 590f229854 restclient: fix overriding of SPC j i
Scope `j i` key binding under major-mode specific leader key.
2016-12-16 08:57:45 -05:00
syl20bnr 679da2436a core: scope minor-mode specific key bindigns under major-mode leader
Also remove unnecessary bindings for org-edit-src-exit
2016-12-16 08:57:45 -05:00
syl20bnr 7b9143832d ansible: add support for company-ansible and ansible-vault
New key bindings to encrypt decrypt ansible-vault encrypted files.
New layer variable ansible-auto-encrypt-descrypt to control seamless edition
of encrypted files.
2016-12-16 08:57:45 -05:00
d12frosted 628562f0f7
add glsl-company to shaders layer 2016-12-14 20:21:28 +02:00
d12frosted 0477040f7e
expose org-journal binded functions as commands
And also fix indentation.

This is to complete #7060
2016-12-14 20:06:24 +02:00
Nick Anderson c37f4212e3
Add: org-journal support 2016-12-14 19:55:37 +02:00
Danny Navarro 6288b28bb0
Remove sbt-hydra rename wrapper
It has been already renamed as expected upstream.
2016-12-12 08:56:06 -03:00
Justin Burkett afa2226051 which-key: Fix transient state descriptions 2016-12-09 19:24:45 -05:00
Justin Burkett c69c3b7684 which-key: Implement combined select window keys
This is @deb0ch's idea and uses the new which-key interface
2016-12-09 19:24:45 -05:00
Joe Lane 43e199b6a5 add copy key to neotree
CHANGES
-------
Add new keybinding to neotree to allow the copying of nodes from the neotree
buffer. Update documentation as well.

WHY
-------
There appear to be all other common file operations bound to the neotree buffer,
however copying of a node is not.
2016-12-09 18:19:52 +02:00
Swaroop C H a0aad96050 Add key binding to run current Rust file
Meant for a quick-prototype flow only - use `spacemacs/open-junk-file' to
open a junk Rust file, type in some code and quickly run it.
2016-12-09 18:14:22 +02:00
d12frosted 20741006b3
add missing header in lua/packages.el file 2016-12-02 20:42:11 +02:00
Kristoffer Haugsbakk 4289a496de mu4e: use proper markup on keybindings
Also fill in missing table borders while I’m here.
2016-11-25 22:44:54 +02:00
bmag 471cabdfb8 Add missing parens in last commit 2016-11-25 20:12:48 +02:00
Justin Burkett 7bf00ad878 which-key: Update usage of replacement alists
See 19186917eb
2016-11-25 12:32:10 +02:00
Kristoffer Haugsbakk 3a61f8e6de Add verbatim markup to paths
By convention, filepaths are marked up with `=`.  Also add this markup to the
string `ViewLogMode`.
2016-11-25 12:23:39 +02:00
syl20bnr a1516a6003 Fix SPC b C-d and SPC b C-D conflict
Fixes #7814
2016-11-23 16:44:13 -05:00
syl20bnr e699f1816a core: wrap Emacs custom in a dotfile new function
New function `dotspacmacs/emacs-custom-settings` wrapping Emacs
custom settings sexps.
`dotspacemacs/emacs-custom-settings` is called just after the user
configuration (`dotspacemacs/user-config`)

Customize cannot write its auto-generated sexps inside a function, to
accomplish this we trick Emacs by setting the custom file to a file
in `.cache` directory, the path to this file is defined by the variable
`spacemacs--custom-file`. At the startup of Emacs we read this file
to insert its content inside the function
`dotspacemacs/emacs-custom-settings` in the dotfile, this is done in the
function `spacemacs/write-custom-settings-to-dotfile`.

I don't think we need to write the custom settings to the dotfile when
exiting Emacs as well, since we do it at startup at the very beginning
(i.e. before actually loading the dotfile) we should be OK.

Fixes #5170
2016-11-22 22:55:36 -05:00
Cadel Watson 0f01b0fb59 Change default fringe color for centered-buffer-mode.
The current default color is "black", which creates ugly bars for many
themes on both sides of the centered buffer. This change sets the fringe
color to the buffer's background color, which blends in nicely.
2016-11-22 20:41:45 -05:00
zhexuany 19592f0ad5 fixed syntax highloght in README 2016-11-22 20:41:45 -05:00
syl20bnr 1cd8c9caf1 Revert "Restore normal state map on evilified exit"
This reverts commit 25a519ecca.

Due to regressions, we need to find another fix for the original issue.
2016-11-22 08:30:20 -05:00
Tu Do 9acfcf3c9e Make Semantic fast
Limit the parsing scope to file, local and project. The choices are
listed in semanticdb-find-default-throttle variable.
2016-11-20 19:00:42 -05:00
Eivind Fonn 25a519ecca Restore normal state map on evilified exit 2016-11-20 18:55:54 -05:00
Tim Jäger 588a4b24f2 Fix hyperlinks in restclient README
The links to the original author's page were broken, so I replaced them with
links to the GH page.
2016-11-20 18:54:23 -05:00
Justin Humm 7172cd7170 Fixed dead hyperlink in magit intro 2016-11-20 18:53:31 -05:00
James Wang 3d9e58cba6 games: add sudoku 2016-11-20 13:40:38 -05:00
syl20bnr 237b2a7373 Move SPC b m to kill other buffers to SPC b C-d
Also move `SPC b C-d` to kill other buffer with regexp to `SPC b C-D`
Update Documentation accordingly.
2016-11-20 13:27:16 -05:00
Max Willsey cce6ad3a59 Change SPC b m to switch to the messages buffer. 2016-11-20 13:27:16 -05:00
syl20bnr a10d7cef39 Add Confluence layer 2016-11-18 10:02:38 -05:00
syl20bnr fed4d1f2b2 Org: Move SPC m e to SPC m e e for org-export-dispatch
In order to be able to support more conversion format
2016-11-18 10:02:38 -05:00
Francesc Elies Henar fea919c479 compilation-mode: maps gf to find-file-at-point 2016-11-15 09:26:22 +02:00
bmag 0d4a8a4d49 Emit error if can't toggle window layout 2016-11-15 09:26:22 +02:00
Muneeb Shaikh 5c9615f72d Adding window layout toggle (vertical <-> horizontal)
All credits to @bmag for this function with window state preservation
2016-11-15 09:14:58 +02:00
Florian Gilcher d986068c3d Fix minor typo 2016-11-14 14:40:53 +02:00
Svyatoslav Gryaznov 32f9f97970 Fix typo in Agda's packages.el 2016-11-14 14:40:23 +02:00
bmag 58c8fd515a rust: respect help-window-select, small fixes
- spacemacs/racer-describe to respect help-window-select
- replace evilified-state-evilify{,-map} and move to :config
- change funcs.el from dos format to unix format (newlines)
- modify spacemacs-jump-handlers-rust-mode only once
2016-11-12 16:20:28 +02:00
NJBS f786c1fa88 Rust: Add binding for describing symbol at point 2016-11-12 16:20:28 +02:00
Dennis Brakhane a13471447f
Update ensime variable name
user-emacs-ensime-directory was renamed to ensime-startup-dirname
2016-11-12 14:58:17 +02:00
Kechao CAI 963621697a spacemacs-base: add prefix for ripgrep search 2016-11-12 14:32:33 +08:00
ksjogo 12284e16b0 Removed deprecated insert-string and replace by insert 2016-11-11 15:23:49 +02:00
david-sawatzke 442681333f Add keybinding "," for org-edit-src-exit
This makes sense so org-edit-src behaves similar to git-commit in magit
2016-11-11 15:23:07 +02:00
Aron Griffis 385c12743a Add ripgrep support
* Add rg to helm completion layer
* Add rg to ivy layer
* Prepend rg to dotspacemacs-search-tools
* Add rg to documentation
2016-11-11 15:22:03 +02:00
JAremko c82239a45f add tmp fix 4 zeal-at-point/issues/28 2016-11-09 21:48:10 -05:00
JAremko 21146336c1 more reasonable file names 2016-11-09 21:48:10 -05:00
JAremko 0ccb160271 Improve documentation 2016-11-09 21:48:05 -05:00
JAremko f1982f5b79 chown to user spacemacs dir 2016-11-09 21:44:59 -05:00
JAremko 4e5f351591 echo Spacemacs version in onbuild 2016-11-09 21:44:59 -05:00
JAremko a82fcd955b split out onbuild 2016-11-09 21:44:58 -05:00
JAremko 5b4bf2a55a add some docs 2016-11-09 21:44:58 -05:00
JAremko ed345c258b implement spacemacs-docker 2016-11-09 21:44:58 -05:00
Eivind Fonn 62ec37a9e4 Integrate ahs with evil as well as isearch 2016-11-09 21:40:43 -05:00
Don March f90dd37e4f Add ibuffer bindings for updating and filter-group motion
The `ibuffer-update` command is originally on `g` but is evilified to
the inconvenient `C-S-g`, so bind it to `gr`.
2016-11-09 19:08:06 +02:00
syl20bnr b9c607fea7 restclient: add ob-restclient package 2016-11-07 10:00:07 -05:00
syl20bnr 8cc96b0b23 restclient: remove gj and gk bindings
No need to override default Vim behavior for this key bindings since
they are available on SPC m n and SPC m p already.

Note: We could add a transient state to go nicely with SPC m n and SPC m p.
2016-11-07 09:40:04 -05:00
Tommi Komulainen 658643da0d restclient: add key bindings for jump to next / previous query
`gj`       jump to next query
`gk`       jump to previous query
`SPC m n`  jump to next query
`SPC m p`  jump to previous query
2016-11-07 09:38:50 -05:00
syl20bnr 2b139acb82 restclient: move restclient-helm to SPC j i
Since it nicely fits SPC j i purpose :-)
2016-11-07 09:34:49 -05:00
Tommi Komulainen ad1d05435c restclient: add helm support to jump to variable or request
Enable restclient-helm that is included in restclient package and add
`SPC m j` key binding.
2016-11-07 09:24:50 -05:00
Tommi Komulainen 538cae74e3 restclient: add autocompletion for methods and headers
Provided by company-restclient.
2016-11-07 09:22:48 -05:00
bmag aa3f1816af Refactor rotate-windows, add utility swap-windows
Changes to rotate-windows:
- rename to spacemacs/rotate-windows-forward
- direction of rotation matches window numbers
- COUNT argument now rotates all windows by COUNT steps
- all window parameters are saved, not only buffer and window-start

swap-windows is not used for now, but could be helpful in the future.
2016-11-05 13:07:45 +02:00
bmag 6e4442e0db Rename and add missing definition of version-control-diff-side 2016-11-05 13:03:23 +02:00
Emmanuel Touzery 1176a23dff version control: let the user pick on which side to display the diff 2016-11-05 12:43:51 +02:00
Bryan Gilbert 7581662d7e rebind 'SPC f b' to 'counsel-bookmark' when using ivy 2016-11-05 12:27:56 +02:00
pnagy bee9ecc858 fix void-variable company-backends-scheme-mode 2016-11-04 10:40:39 +01:00
Francesc Elies 29049dd3ac
Update README.org
Uses flycheck instead of flycheck-typescript-tslint
2016-11-03 19:00:53 +02:00
Diego Berrocal a6554a5773
Fix Typo in Purpose Layer 2016-11-02 21:29:40 +02:00
deb0ch 855d786100
Add duplicate-line-or-region to layer better-defaults
from https://www.emacswiki.org/emacs/CopyingWholeLines

Duplicate current line, or region if active.
With argument N, make N copies.
With negative N, comment out original line and use the absolute value.

keybinding: `SPC x l d` (text - line - duplicate)
2016-11-02 21:07:15 +02:00
Eivind Fonn db20ba528b Remove themes missing from MELPA
https://github.com/melpa/melpa/pull/4369
2016-10-31 12:54:00 +01:00
Eivind Fonn 721426f75c Warn if both helm and ivy are enabled 2016-10-29 15:26:05 +02:00
Eivind Fonn 977a29316b Fix unbound holy-mode error 2016-10-29 15:11:36 +02:00
Eivind Fonn 4bf8e529b8 Move SPC p C-g to SPC p G 2016-10-28 13:44:29 +02:00
Carl Lange aa3a799c39 spacemacs-purpose readme - Fix links and typos
I think there was a failed replace here :) The links now work correctly and the typos are gone. Yay!
2016-10-28 09:07:10 +01:00
Xiao Hanyu 0de0705e88 Typo fix
Just a typo fix for auto-completion layer.
2016-10-27 11:06:19 +08:00
Eivind Fonn f94ca2a8cc go-guru on MELPA 2016-10-26 09:48:24 +02:00
Bryan Gilbert b515253026 move helm specific layout transient state keybindings to helm layer 2016-10-23 19:44:35 +02:00
Bryan Gilbert 389d722996 close layout transient state upon entering layout buffer select when 2016-10-23 19:44:35 +02:00
Nir Friedman 632e4cea6e Add keybindings to move buffers by window number 2016-10-23 19:44:35 +02:00
yangguang760 67ac25c80a fix debug string for python3
fix debug string for python3:
ipdb  ->  ipdb3
pudb  -> pudb3
2016-10-23 19:44:35 +02:00
Romanos Skiadas fa16fa90e0 Fix eclim documentation in Java layer
`eclim-eclipse-dirs` is a list, not a string.
2016-10-23 19:44:35 +02:00
Aldric Giacomoni 81388bc1e4 Scala readme: code block for scala-enable-eldoc 2016-10-23 19:44:35 +02:00
Chen Zhang 9da665dd82 ipython: Update matplotlibrc
It comes from an offical "UserWarning":
> axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter

But axes.prop_cycle receive a new format of parameters, this will fix it.
2016-10-23 19:44:35 +02:00
Bryan Gilbert 1f1582d60d Add sourcerer theme to themes-megapack 2016-10-23 19:44:35 +02:00
Melon Bread 22d24cbfb4 Added sqlite3 requirement 2016-10-23 19:44:35 +02:00
syl20bnr 2c5b628570 Move SPC t H to SPC t h s
SPC t h is the prefix for toggling highlighting stuff.
2016-10-23 19:44:35 +02:00
jupl 253276e0d1 Add toggle for syntax highlighting (via font-lock) 2016-10-23 19:44:35 +02:00
Eivind Fonn 4f700556af message instead of warn on failed auto-evilify 2016-10-23 19:44:35 +02:00
syl20bnr 7cdd998e78 Inverse SPC t m t and SPC t m T
Toggling the time is a segment so it is more consistent with the rest
of the lowercase keys.
Toggling the whole mode-line feels better on a capital letter.
2016-10-23 19:44:35 +02:00
jupl e384b2124b Add toggle to display time in modeline 2016-10-23 19:44:35 +02:00
Eivind Fonn 9c966a8d8f Simplify python test runner setup 2016-10-23 19:44:35 +02:00
deb0ch 3b92a4c2bf maximize frame earlier in the startup process 2016-10-23 19:44:35 +02:00
bmag e5c9632678 New dotvariable to control switch-to-buffer behavior
With a nil value for dotspacemacs-switch-to-buffer-prefers-purpose,
switch-to-buffer prefers using the current window, same as vanilla
Emacs. With a non-nil value, switch-to-buffer prefers another window
with the same purpose as the buffer. This affects actions like
spacemacs/alternate-buffer, and opening buffers from Dired.
2016-10-23 19:44:35 +02:00
syl20bnr 7ee75bb752 nim: fix key bindings in README 2016-10-18 22:49:34 -04:00
YeJun Su 2f263e998c
Remove check for GOPATH when init go-guru
go-guru.el has been moved to https://github.com/dominikh/go-mode.el

FYI, 69f6f5b782
2016-10-18 10:47:40 +03:00
bmag 15fc015088 purpose: disable kill extension
purpose-x-kill-setup sometimes slows Emacs down
2016-10-18 09:53:02 +03:00
syl20bnr 66d9f38a45 Add hide/show comments on SPC c h 2016-10-17 15:32:43 -04:00
syl20bnr fd07fd47ef New package insert-shebang 2016-10-17 15:32:43 -04:00
Jacob Lewallen cbb195141c Match entire path after -I for passing to expand-file-name.
Otherwise I was seeing these transformations:

invocation-dir = C:/Some/Directory

-I../another/directory
-IC:/another/directory

Became

-Ic:/Some/Directory./another/directory
-IC:/SOME/DIRECTORY/C:/another/directory
2016-10-17 20:11:49 +02:00
Shanavas M 5d8f7bd7c6 Add missing prefices for js2-mode 2016-10-17 20:08:08 +02:00
Aaron Jensen 96022308d1 elixir: flycheck on idle
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: https://github.com/tomekowal/flycheck-mix/pull/2
2016-10-17 20:07:23 +02:00
JAremko fa93c84cab Describe scss-lint setup 2016-10-17 20:05:16 +02:00
Valentin Ignatyev f57df781ad Fix #6947 by deriving conf-mode from text-mode 2016-10-17 20:03:02 +02:00
Allen Li 6332d50f8f org: Add org-expiry
Add org-expiry package to be loaded lazily and autoload interactive
functions.

Provides no default configuration, but make it more convenient for users
to use the org-expiry package in their personal configuration.
2016-10-17 19:59:28 +02:00
duianto af3445950f Evil Nr TS, add 0..9 prefix and q quit
This implements the changes in: #7013
Add "[0..9] prefix" and "[q] quit", and separates the keys by 2 spaces.
2016-10-17 19:57:57 +02:00
Tu Do 866d95baaf Common Lisp: enable fuzzy matching with comapny 2016-10-17 19:51:06 +02:00
Kai von Fintel 498321f70d Move org-async-init.el into org/local dir 2016-10-17 19:48:34 +02:00
carbohydratesn ca5ea34196 Completed instructions for a quick start with boot
Moved to develop branch, original pull request -

https://github.com/syl20bnr/spacemacs/pull/7003

As an absolute beginner, this took a while to figure out, and eventually required reading through Cider's source files.

Currently, there must be a build.boot file present - an empty one works - if you want to start a repl through cider with boot.

https://github.com/clojure-emacs/cider/issues/1835
2016-10-17 19:46:45 +02:00
Muneeb Shaikh 5771484668 Move spacemacs/git-link-* functions to git layer 2016-10-17 18:52:55 +05:30
deb0ch ddbee36ad6 Activating linum-relative now activates linum 2016-10-17 15:05:44 +02:00
bmag ed9637ee4b Properly override purpose-mode-map 2016-10-17 14:41:13 +02:00
Eivind Fonn b54b61e926 CSS-mode derives from prog-mode in Emacs 25 2016-10-17 14:38:50 +02:00
bmag 699e78f38a python: really start REPL also in emacs 25.1
Make `python-start-or-switch-repl` start a REPL when necessery also in
Emacs 25.1. Previously in Emacs 25.1 it wouldn't do anything if the REPL
wasn't started already.
2016-10-17 14:12:46 +02:00
Eoin Houlihan 7464ef32e2 Use Magit 2.8's built-in fullscreen display function 2016-10-17 14:11:28 +02:00
Ryan Phillips cd6b5ed67b add magit-repolist support
fixes #7083
2016-10-17 14:07:58 +02:00
Zhang Chen eec4f00147 axes.color_cycle is deprecated
It comes from an offical "UserWarning": axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter
2016-10-17 14:04:19 +02:00
Diego Berrocal 704e103394 Add open packages.el shortcut in spacemacs-help
I find myself wanting to open the package.el and f3 is just too far away
in my keyboard. And I thought maybe this would be something people might
want. Also maybe we could have special binding for actions? like `C-1`
`C-2`, etc
2016-10-17 14:03:21 +02:00
deb0ch dc14a5062a ycmd: improve search of nearest file in compilation database 2016-10-17 14:02:29 +02:00
Eivind Fonn f2acb02a92 Fix whoopsie from previous commit 2016-10-17 14:01:36 +02:00
Eivind Fonn 48dc7776ae Some nim layer fixes
- Define nimscript backend list
- Use jump handlers API
2016-10-17 14:00:15 +02:00
Tu Do 763d6f5555 Improve Nim layer
- Add support for better completion using Nim's IDE tool, `nimsuggest`.
- Add key binding for goto definition and jump back.
- Eldoc integration (with the nimsuggest-mode)
- Update documentation.
2016-10-17 13:58:12 +02:00
Rudi Grinberg 889b68110c OCaml layer: add ignored extension
Add cmti extension to list of ignored completion exts
2016-10-17 13:55:17 +02:00
Christian Gram Kalhauge f462c9475f Add Twitter Bootstrap support to org 2016-10-17 13:54:06 +02:00
Todd Fiala ee9d82d7cc fix broken macOS paths for homebrew service
When Spacemacs is run as a macOS homebrew service, the window-system
at startup time is not set.  This causes the very-early
call to exec-path-from-shell, which was checking for macOS via
window-system, to fail the check.  This is pretty much game over
for macOS and user-customized paths, as the exec paths are not
updated and any extra user-path utilities (e.g. aspell, gls) won't
be found.

This change switches over to using spacemacs/system-is-mac and
spacemacs/system-is-linux as the primary check, and keeps the
window-system check for 'x in case other Unix variants
are getting exec-path set via that check.
2016-10-17 13:51:44 +02:00
Matt Giles 59189603ae Fix inconsistent org mode key bindings
Fixes #6630

In org-agenda-mode, make the org-agenda-refile and
org-agenda-clock-cancel bindings consistent with org-refile and
org-clock-cancel.

In org-agenda-transient-state, make the refile, set tags, clock in,
clock out, and clock cancel bindings consistent with their org-mode
and org-agenda-mode equivalents.

In org-capture-mode, make the org-capture-refile binding the same as
the org-agenda-refile and org-refile.
2016-10-17 13:50:20 +02:00
Swaroop C H e1f128b269 Mention mode line support for org clock 2016-10-17 13:49:05 +02:00
Corin 73ff3de8d2 Fix typo
feature -> features
2016-10-17 13:47:49 +02:00
bmag 3fc32063c7 Move vi-tilde aux functions to spacemacs-evil
spacemacs/disable-vi-tilde-fringe and
spacemacs/disable-vi-tilde-fringe-read-only are used by spacemacs-evil,
but were defined in spacemacs-ui-visual. Move the definitions to the
correct place.
2016-10-17 13:47:23 +02:00
bmag 0e1491c434 Make ivy restrict buffers to layout
Also create separate non-restricted-buffer-list (`SPC B b`) for helm and
ivy.
2016-10-17 13:45:43 +02:00
bmag 797b5b08b7 golden-ratio: add to window TS only when used 2016-10-17 13:43:54 +02:00
bmag 88e4ddf778 git: hook fci-mode only when fci package is used 2016-10-17 13:42:37 +02:00
Diego Alvarez 2279c2c80e scala - update scalastyle-flycheck instructions 2016-10-17 13:41:19 +02:00
Jim Deville 194113a6eb update docs with go-guru info 2016-10-17 13:36:40 +02:00
Eric Drechsel f609a25585 go: replace deprecated oracle with guru
change to prefix for guru commands from `mr` to `mf`
to separate from rename commands. Better prefix?

Fixes #6772.
2016-10-17 13:36:31 +02:00
Matthías Páll Gissurarson 146aa55af3 Moved rebox to be under tools, as per documentation 2016-10-17 13:35:39 +02:00
deb0ch 6a6cf57713 better-defaults layer: update emacs logo 2016-10-17 13:34:40 +02:00
Stephen Sugden 119972ab81 Fix usage of gorename on symlinked projects
I often work on Go projects under a symlink, e.g. ~/Code/project points to
$GOPATH/src/github.com/grncdr/...

This works fine 99% of the time, but gorename doesn't follow symlinks in order
to get the "truename" of a file, so it will complain about
~/Code/project/somefile.go not belonging to any package. This fixes that
situation by ensuring that gorename is only passed the true filename.
2016-10-17 13:33:35 +02:00
duianto 738451c2b8 fix neotree duplicate function comment
Both the spacemacs/neotree-expand-or-open and spacemacs/neotree-collapse
functions had the same comment: "Collapse a neotree node."

This renames the spacemacs/neotree-expand-or-open function to:
"Expand or open a neotree node."
2016-10-17 13:28:44 +02:00
Andrew Stevanus c87832b6a9 Fix connecting to default servers with TLS more than once with ERC
The erc//servers function removes the :ssl variable from the list so it
can be passed directly to erc-tls, but this means that subsequent
connections will not use TLS. Thus, we should operate on a copy of the
list instead.
2016-10-17 13:28:07 +02:00
bmag bbd812991a Refactor spacemacs/python-execute-file 2016-10-17 13:26:40 +02:00