Commit graph

1799 commits

Author SHA1 Message Date
Thomas de Beauchene 71f8ae8e38
Add mwim to layer better-defaults
Add "smart move end of line" behaviour and add two layer variables
allow for tweaking C-a and C-e behaviours:

- better-defaults-move-to-beginning-of-code-first and
- better-defaults-move-to-end-of-code-first
2016-06-27 15:16:31 +03:00
syl20bnr 89dc1af9a6 Remove spacemacs/add-to-local-vars-hook and use (format ...)
It is better to directly hook function using the conventional hook
functions.

Replace usage of (concat ...) by a (format ...) from which is more
readable.
2016-06-26 14:04:13 -04:00
d12frosted a8b0eaacec fix support of conditional config in ruby layer 2016-06-26 13:51:12 -04:00
d12frosted 45dd381fd2 conditionally enable haskell completion backend 2016-06-26 13:51:11 -04:00
d12frosted 6798af57e3 implement API for local-vars-hook 2016-06-26 13:51:11 -04:00
syl20bnr 4ad27cfea8 Update docstring for space-doc and delete some empty lines 2016-06-26 13:47:52 -04:00
Eivind Fonn 38814881dc Allow user more control over space-doc mode 2016-06-26 13:27:51 -04:00
syl20bnr b30c393b8d Refactor SPC w and SPC b regarding deletion
The motivation is to clean redundent actions and bring more consistency
between `SPC b` and `SPC w` by:
- using capital letters for ace-window actions
- reusing the same letters between window and buffer when possible
- adding support for universal prefix argument to delete both window
and buffer

Details of changes:

Buffer

- `SPC b k` has been removed since the functionality is
available directly in Helm by selecting the kill buffer action

- `SPC b m` (buffer move) has been removed because the functionality
is available via `SPC w` with `SPC w h/j/k/l`, `SPC w H/J/K/L` and
`SPC w M` (see window section for the new `SPC w M`).

- `SPC b K` (kill other buffers) is now `SPC b m` to map with `SPC w m`
(kill other window or maximize). Using the universal prefix argument
`SPC u SPC b m` will also kill the windows.

- `SPC b C-k` (kill buffer matching regexp) is now simply on `SPC b k`.

- `SPC b D` now kills a buffer using ace-window.

- `SPC b d` and `SPC b D` now accept an universal prefix argument to
also delete the window. So `SPC u SPC b d` and `SPC u SPC b D` delete
the buffer and the window.

Window

- `SPC w M` now swap the window using ace-window.

- old `SPC w M` (center window) is now on `SPC w c` and `SPC w C` uses
ace-window.

- `SPC w SPC` (select window) is now on `SPC w W` since it uses
ace-window.

- `SPC w d` and `SPC w D` now accepts an universal prefix argument to
delete the window and the buffer.
2016-06-26 00:05:55 -04:00
Jonas Benn 878c45abf9
Add kill-buffer-and-window keybinding
`kill-buffer-and-window` is now bound to `SPC b D` and the keybinding
is documented.
2016-06-25 09:06:40 +03:00
d12frosted 841fc514b8
remove TODOs from dash layer readme file 2016-06-24 20:36:47 +03:00
syl20bnr 93d01704a6 haskell: align tables in documentation 2016-06-23 00:50:03 -04:00
d12frosted a8e569d3b2 refine haskell completion backends
- add haskell-completion-backend variable that should be used to select
  desired completion backend
- add support for intero (based on @cydparser layer)
- remove ghci-ng support
- update readme file:
  - document haskell-completion-backend variable
  - remove installation notes for ghc-mod as they are not relevant
    anymore
  - remove ghci-ng section
  - overall readme file fixes and improvements
2016-06-23 00:47:23 -04:00
syl20bnr cbb61070fd Replace some emacs-user-directory vars and update documentation 2016-06-23 00:25:04 -04:00
Exaos-memes 904f7ea665 Define new variable: spacemacs-start-directory.
With this new variable, user can load spacemacs anywhere, e.g.
"~/.emacs.d/spacemacs/". Only user's cache directory is still hard-coded
as "~/.emacs.d/.cache/". If user want to use spacemacs this way, drop
one line as the below in "~/.emacs.d/init.el":

    (setq spacemacs-start-directory "~/.emacs.d/spacemacs/")
    (load-file (concat spacemacs-start-directory "init.el"))
2016-06-23 00:19:34 -04:00
syl20bnr bef22b40a4 keyboard-layout: minor edition in README.org 2016-06-22 23:54:34 -04:00
Fabien Dubosson 7c56215860 keyboard-layout layer 2016-06-22 23:35:06 -04:00
syl20bnr 829f00a824 Add more info for fish shell and ansi-term 2016-06-22 23:28:41 -04:00
ralesi 560f86f997
Fix :owner reference in ivy-spacemacs-help 2016-06-22 07:44:15 +03:00
syl20bnr 85ace24553 react: fix tern setup
The init function should be a post-init instead of an init function.
Also simplified the configuratin quite a bit.
2016-06-21 19:04:59 -04:00
d12frosted 7de26d5a2d
clarify installation notes on scala readme 2016-06-21 20:05:21 +03:00
Tony Lotts 9f46d563b8
Update README.org
Refer to Ensime's SBT plugin installation instructions.
2016-06-21 19:59:17 +03:00
km d7820aafd6 Remove even more 24.3 related configuration
Helm-flx, which is included as a core package, requires a minimum Emacs
version of 24.4. As it stands attempting to install Spacemacs on Emacs
24.3 or below will break on helm-flx.
2016-06-20 22:26:53 -04:00
Eivind Fonn 92b48eadea 💣 Drop support for Emacs 24.3
Spacemacs now needs at least 24.4 to launch.
2016-06-20 22:05:56 -04:00
syl20bnr 117dcba0ed Revert "Drop support for Emacs 24.3"
This reverts commit 31bab70397 making
a new commit to put TheBB as the author.
2016-06-20 22:05:12 -04:00
syl20bnr 31bab70397 💣 Drop support for Emacs 24.3
Spacemacs now needs at least 24.4 to launch.
2016-06-20 21:55:36 -04:00
Eivind Fonn 2a6ffc72d9 ivy: Support GNE
Implement a keymap for Spacemacs’ counsel search that supports saving
the results to a buffer (bound on F3 as in helm). Ensure that the new
buffer supports the GNE API.
2016-06-18 19:21:26 -04:00
Eivind Fonn 194af58f3c helm: Support GNE
Advice the save-buffer functions to use the GNE API in that buffer.
2016-06-18 19:21:26 -04:00
Eivind Fonn bdb40cf4d0 Implement error transient state
This works with systems defined by the error delegate function (and it
shows which system is used, and which buffer supplies the “errors”).
When the Emacs next-error system is used and the next-error buffer is a
Spacemacs GNE buffer, it also shows current number / total number.
2016-06-18 19:21:26 -04:00
Eivind Fonn c9048dc0e3 Implement generalized next-error API
The function spacemacs//gne-next can be used as next-error-function in
any buffer where lines represent “entries” that can be visited.
2016-06-18 19:21:26 -04:00
Eivind Fonn 6236f9fd58 Minor refactoring of next/previous error
Implement a delegate function that decides which system to use. Also
check for the visibility of any next-error valid buffer, not just
compilation buffers.
2016-06-18 19:21:26 -04:00
syl20bnr 50d5cdd054 Fix error with which-key--buffer on startup
Use the hook instead.
Fixes #6358
2016-06-18 00:19:59 -04:00
syl20bnr 2738724ed4 erc, html and pdf-tools: use :evil-leader-for-mode in transient states 2016-06-17 23:40:06 -04:00
syl20bnr d66b5c0a93 iptyhon-notebook: evilify notebooklist buffer
Move eval-after-load to :init block.
2016-06-17 23:22:12 -04:00
syl20bnr 3768374488 ipython-notebook: resize images in readme 2016-06-17 23:21:45 -04:00
syl20bnr 4ff26b3f27 ipthon-notebook: move transient state binding to SPC m .
Or `,.` with the shortcut, this is a more standard approach.
Use the :evil-leader-for-mode keyword to bind the transient state

Add space in the :doc of the transient state because auto-indent of
elisp code is broken otherwise.
2016-06-17 22:55:19 -04:00
d12frosted 2570a1340b
fix spacemacs/rename-file function
It has some wrong variable names which leads to errors.
2016-06-17 21:51:48 +03:00
Eivind Fonn 074ac8f756 ipython-notebook: fix loading of keymap 2016-06-17 18:40:13 +02:00
syl20bnr e1826c9382 Disable vi tilde fringe in which-key buffer 2016-06-13 00:39:08 -04:00
sooheon d0452a861a Disable vim-empty-lines in unnecessary buffers
*Messages* and which-key--buffer do not need empty line indicators.

Also break up an unnecessarily long line.
2016-06-13 00:34:07 -04:00
syl20bnr ad72dab624 Move pcre2el key bindings to SPC x r prefix
Also document it.
Move everything to spacemacs-base since the new prefix is not as invasive
2016-06-13 00:01:25 -04:00
ralesi 9047b7b5ce Move pcre2el to spacemacs-base.
Fixes #5953
2016-06-12 23:06:22 -04:00
NJBS b6432e1efe Add prefixes to the LaTex layer 2016-06-12 21:57:14 -04:00
Ben Gamari 7b1430e9d5 haskell: Don't enable haskell-tags-on-save
This is a very opinionated option and works very poorly on even
moderately large projects as it invokes `hasktags` synchronously,
freezing the editor for several seconds on every save. Users who want
this behavior should enable it manually.

Fixes #6292.
2016-06-12 21:51:28 -04:00
Eivind Fonn 0b2a438aa7 clojure: enable smartparens in cider
cider-repl-mode doesn’t derive from comint
2016-06-12 21:50:34 -04:00
Dionysis Athinaios 5ec5882974 Provide more details for ycmd installation and configuration 2016-06-12 21:49:07 -04:00
kr5x 07864f50d9 common-lisp: Remove <tab> key binding
'indent-command-for-tab' that already bound to <tab> globally is more useful.
2016-06-12 21:44:52 -04:00
Wieland Hoffmann 78bfe65e62 Python: Don't remove ':' from electric-indent-chars in emacs >= 24.5
According to the conversation in [0] ':' is removed from
electric-indent-chars in python-mode because typing ':' in

> for i in range(10):
>    print(i)
> for i in range(10)_

with the point at _ indents the third line. This is not happening in
Emacs 24.5 anymore.

[0] aed0fc8ef8
2016-06-12 21:42:40 -04:00
syl20bnr dc94784e70 Remove leuven theme from spacemas-ui-visual and simplify default value
for dotspacemacs-themes, set only the spacemacs themes.
2016-06-12 21:15:10 -04:00
d12frosted 9df123c40c haskell: remove structured-haskell-mode 2016-06-12 21:11:32 -04:00
syl20bnr 4f5d7670f1 core: fix typo with configuration-layer--inhibit-warnings 2016-06-10 23:41:33 -04:00