Commit graph

292 commits

Author SHA1 Message Date
Diego Berrocal 8fb3af3e56 Add ability to **add** a layer in helm-spacemacs
I've been introducing tons of people to Spacemacs, and most of them
always think that having to read documentation in how to add a layer is
too much.

I made this modification to make it easier to install layers.
2015-12-11 02:13:17 -05:00
Daniel Luna cf11545cc4 spacemacs/sudo-edit working on remote ssh buffers with multi-hops 2015-12-11 02:11:32 -05:00
Fabien Dubosson 315528c89f Refactor CONTRIBUTING documentations
This commit merge the `CONTRIBUTING.md` and `doc/CONTRIBUTE.org` file
into a new `CONTRIBUTING.org` file. It also refactors the content to be
more organized and make its navigation more goal-oriented.

Github displays a link to the `CONTRIBUTING.*` file when people are
opening new issues or proposing new PRs. This file is important because
it is the entry-point to contributions guidelines for most of the users.
The current setup is non-optimal, even broken, as it adds a level of
indirection, and points to a contributing file that has broken
links (due to the new documentation format). The possible drawback of
the proposed solution is that I'm not sure if it is possible to include
it into the new online documentation as it is not in `doc/` folder.

The other possibility is to keep a small `CONTRIBUTING.md` file, as it
is now, pointing to the new documentation system (once online), but I'm
preferring the proposed solution for the following reasons:

- People that are willing to contribute will probably open Github
  first (for forking, creating PR, etc), not the online documentation.

- It has one level of indirection less when people click on the
  guidelines guide from a new issue/PR.

- `CONTRIBUTING.*` is by convention a special kind of file on github, so
  it's valid reason to break the rule and not having it in the `doc/`
  folder.
2015-12-11 01:09:09 -05:00
syl20bnr eaf6b8c134 selectric: tweak configuration, declare SPC C-t prefix name 2015-12-09 18:56:08 -05:00
William Casarin c4a80efcb8 keybinding: ck -> kill-compilation 2015-12-09 01:31:42 -05:00
justbur 76d82869a8 bind-map: Define minor-mode name
New bind-map option allows defining the name for the overriding-mode.
This does that and removes the now redundant :evil-use-local option.
2015-12-09 01:25:19 -05:00
syl20bnr 0860d64660 Replace old evilify macro for neotree 2015-12-09 01:22:43 -05:00
syl20bnr 4a75ab4dfb Require helm in spacemacs/helm-open-junk-file 2015-12-09 01:14:15 -05:00
Muneeb Shaikh 7309c861f0 junk: open junk file using helm, allow searching with prefix
Also renamed `open-junk-file-directory` to new var
`open-junk-file-format`
2015-12-09 01:10:12 -05:00
syl20bnr 5895e0e45f change mhh for gh to follow-symbol in help buffers
Also document the key bindings
2015-12-09 01:08:52 -05:00
AdrieanKhisbe ccb5ce5578 Add new keys in help-mode for navigation
Add keys to browse back and forward in help-mode

cf #2698

Add new key in help-mode

Last changes for motion in help buffer
2015-12-09 00:59:07 -05:00
Bar Magal 0ce04e0518 Evilify Neotree 2015-12-09 00:55:44 -05:00
syl20bnr 30e9a294d9 evilified-state: use a copy of evilified-state
instead of the map itself.
2015-12-08 02:08:50 -05:00
syl20bnr e0b3f5e1de spacemacs-base: enable hl-todo only when needed 2015-12-07 22:59:14 -05:00
Fabien Dubosson 6def1a480b Use hl-todo for TODOs/FIXMEs highlighting
The current way to highlight TODOs is `spacemacs/highlight-TODO-words`
which is a spacemacs' hard-coded function.

This commit changes it for the `hl-todo` package. This imply:

- More keywords are supported out of the box.

- Keywords are associated to faces, so they are shown in different
  colors.

- Keywords are stored with their faces in a list, so it's easier for
  users to add their own keywords and faces (as contrary to a regexp).

- It is possible to disable highlighting by simply excluding the
  package.
2015-12-07 19:39:38 +01:00
Fabien Dubosson ec8250ea1d Move jump-in-buffer to SPC s j
After a discussion on gitter with @TheBB and @syl20bnr, `jump-in-buffer`
is moved from `SPC s L` to `SPC s j`.
2015-12-07 13:12:10 +01:00
syl20bnr 5104593e89 spacemacs-base: swap SPC s l and SPC s L
SPC s l to bring last search buffer is a powerful binding, let it take
the easier binding.
2015-12-06 23:20:46 -05:00
syl20bnr 0438ee43cf evilified-state: better tag for evilified state 2015-12-06 01:06:41 -05:00
syl20bnr 6fd2af2af3 evilified-state: support for magit remap entries in section maps
Add :pre-bindings keyword argument used to restore explicit key binding
in section maps.
2015-12-06 01:04:13 -05:00
syl20bnr 085d8f150a evilified state: fix visual state
reintroduce the pre-command hook which is required for visual state
borrow code from evil-magit to fix ESC bug in visual state in magit buffers
2015-12-05 23:13:40 -05:00
justbur 899123258a keys: Don't specify C-i as a binding key
(kbd "C-i") == (kbd "TAB") so for consistency sake we always bind to TAB
by convention.
2015-12-05 13:18:37 -05:00
vijaykiran d6be41a4e8 Fix Latin function name
Apparently ` in-nominus-patris-et-filii-et-sipritus-sancti` should be
`in-nomine-patris-et-filii-et-sipritus-sancti`

See: https://en.wikipedia.org/wiki/Trinitarian_formula
Via: https://twitter.com/PeterHilton/status/672133909795196928
2015-12-03 23:54:15 -05:00
Daniel Choi 2d17a08138 core: fix: 'ahs-edit-mode' func requires argument
func signature is (defun ahs-edit-mode (arg &optional temporary))
2015-12-03 23:49:32 -05:00
Eivind Fonn 4870030ba1 Auto-set evil-shift-width based on mode settings 2015-12-01 02:19:56 -05:00
AdrieanKhisbe 5a69b6dd9c Extract spray speed reading layer
cf #3882
2015-12-01 01:45:05 -05:00
justbur 81765e9f8f keys: Fix #3927
Use new bind-map option to override minor-mode maps with the emacs
leader key.
2015-12-01 01:22:53 -05:00
Allen Li 4321fccb05 Fix issue #3978
Duplicate prefix maps when evilifying maps to fix prefix binding getting
shared and overwritten between maps.
2015-12-01 01:18:01 -05:00
syl20bnr 97ae903317 evilified-state: remove unnecessary pre-command-hook 2015-12-01 00:46:19 -05:00
syl20bnr 1e6e4023e8 evilified-state: handle minibuffer
Fix isearch not working with evilified keys.
Requires last version (3.11 or above) of evil-escape to be fully
functional.
2015-11-30 11:30:18 -05:00
justbur 648a4e9937 keys: Fix #3981
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
2015-11-29 23:21:09 -05:00
Chris Perkins d99259bcd5 Add some missing which-key prefixes 2015-11-29 12:12:43 +01:00
syl20bnr a19c0f3d24 core: remove spacemacs/set-key funcs and add a new pre-command-hook
This pre-command-hook translates the special key to the corresponding
emacs function key. This effects only happens in terminal, this hook is
a no-op in GUI.

By doing this we attempt to bring more consistency between the GUI
and the terminal regarding TAB and RET keys.
2015-11-28 23:11:48 -05:00
syl20bnr d5233a9706 core: new spacemacs function to set keys
spacemacs/set-key
spacemacs/set-key-for-state

These functions find normalized keys which should handle as sanely as
possible the GUI and the terminal.

See docstring of spacemacs//normalize-key for more info.
2015-11-28 00:13:31 -05:00
Caleb Meyer 7ea379dbde Changed hotkeys for processes and packages. Fixes #3507.
This commit changes:
<leader> a p from proced to list-processes
<leader> a P from paradox-list-packages to proced
and <leader> a k to paradox-list-packages.
2015-11-27 10:32:51 +01:00
Eivind Fonn 7adca30aeb Fix void variable error: smartparens-strict-mode 2015-11-26 23:25:48 -05:00
Fabien Dubosson ec308f0f8e Add a binding for helm-ag-pop-stack
Close #2736
2015-11-24 23:29:12 +01:00
syl20bnr c732c9ea22 Move vi-tilde-fringe toggle to SPC T ~ 2015-11-24 09:59:16 -05:00
Adam Olsen ac9e81bf49 Set neo-vc-integration to nil by default
* Set `neo-vc-integration` to `nil` for much better performance
* Add documentation for the `neo-vc-integration` setting.
* Add documentation for the `neo-theme` setting.
2015-11-23 20:17:03 +01:00
syl20bnr b540b15afe Move describe-keymap to SPC h d K and document it 2015-11-22 22:31:29 -05:00
syl20bnr 589ccded17 Add TODO in comment 2015-11-22 22:29:59 -05:00
syl20bnr 878c986f5f Update evil-lisp-state configuration for version 8 2015-11-22 22:10:41 -05:00
Eivind Fonn fbc6bc56cc Remove temp workaround for evil-lisp-state 2015-11-22 22:10:35 +01:00
Eivind Fonn d16be23def Add workaround for #3901 2015-11-22 10:33:57 +01:00
justbur 53e2c9ac27 layers: Fix leader key in some modes
Specifically need to be concerned with modes that make their maps
overriding.

 1. dired
 2. evil-magit
2015-11-21 18:22:51 +01:00
justbur e1e850f179 core: Assume all which-key funcs available now 2015-11-21 18:22:51 +01:00
justbur 4e25b7609c spacemacs-base: Add help-fns+
Adds useful help functions like describe-keymap.
2015-11-21 18:22:51 +01: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
justbur ee6a486d4c core: Add new set-key functions to core-keybindings
Set up to use bind-map instead of evil-leader for leader key
functionality.

Alias evil-leader funcs and remove package
2015-11-21 18:18:01 +01:00
Eivind Fonn e7fbc84ff0 Remove package guards for evilified
See discussion in #3879
2015-11-21 11:07:14 +01:00
kr5x 05a40a2ee2 holy-mode: fix #3876 2015-11-19 12:36:03 +01:00
syl20bnr 629d736b79 core: add package keyword :protected
A protected package cannot be uninstalled nor excluded.
2015-11-19 00:53:57 -05:00
syl20bnr e3df025eff evilified-state: fix tests and rename library to evil-evilified-state 2015-11-19 00:24:27 -05:00
justbur b294461957 evilified-state: Make into local package 2015-11-18 23:35:01 -05:00
Eivind Fonn a13486d2d2 Delimit TODO keywords as words
words like “HACKER” becoming partially highlighted
2015-11-18 16:32:14 +01:00
David Hashe 16d6b0363c Switch mode-line toggle meanings 2015-11-17 15:31:02 +01:00
Fabien Dubosson 471fce6106 Change behaviour of [=] [0] in zooms
As proposed in #2144, Use [=] as an alias of [+], and use [0] instead
for resetting the zoom.

Add a missing `q` binding/documentation.

Close #2144
2015-11-16 20:51:06 +01:00
Fabien Dubosson 98fa5e8d7c Make dired "guess" target directory
Make dired "guess" target directory for some operations, like copy to
directory visited in other split buffer.

Close #2835
2015-11-16 20:51:06 +01:00
Fabien Dubosson 00d21bb69f Add SPC h SPC as an alias of SPC f e h
Add `SPC h SPC` to access helm-spacemacs. Mnemonic
is **h**elp **SPC**macs. As suggested by syl20bnr on #2145.

Close #2145
2015-11-16 20:42:12 +01:00
Eivind Fonn bd2e847a33 Move which-key top level to SPC hk
…and helm-make to SPC cm
2015-11-16 16:21:24 +01:00
Eivind Fonn 58f17f7b8a Fix helm microstate 2015-11-15 10:25:40 -05:00
justbur b82fb4cee8 spacemacs-base: Fix paren problem 2015-11-15 08:44:26 -05:00
Eivind Fonn f6eb4f4290 Document SPC h h binding and move to init function
Also remove hl-anything docs
2015-11-15 12:24:49 +01:00
justbur b3e24604a1 Add bindings for which-key-show-top-level
This is a function that shows unprefixed bindings
2015-11-15 12:20:23 +01:00
Christoph Paulik 9726033515 Don't use ido for sudo-edit of new files and bind key 2015-11-15 12:19:25 +01:00
Eivind Fonn de1cce8ba6 Add C-j and C-k history commands in shells
Based on work by mijoharas
2015-11-14 00:37:21 -05:00
Eivind Fonn 38e48aa95d Highlight TODO keywords in all prog modes
Also make the colon optional
2015-11-14 00:34:05 -05:00
Sebastian Wiesner a4882308a5 Move lorem ipsum package to il
Spacemacs already has the "i" prefix for insertion, why do we also need
a separate prefix "xi" for “text insertion”?
2015-11-14 00:33:46 -05:00
Christoph Paulik d1c8e4b9f7 Disable projectile-caching by default.
- Default projectile settings are to disable caching when indexing
  method is `alien. So setting the indexing method should be enough.
- On windows we keep the 'native method unless find is found
2015-11-14 00:32:43 -05:00
Joe Hillenbrand 3b6fd59245 Add SPC c q to close the compilation window
I found it annoying to have to re-navigate to the *compilation* window
and close it after every time I compile with `SPC p c`.

This patch adds a binding to make closing this window fast and easy.

Also a little bit of clean up.
2015-11-13 13:55:53 +01:00
Rich Alesi 2a2505de49 Allow restart-emacs to work with persistent-server
Allow `restart-emacs` to work when `dotspacemacs-persistent-server` is enabled.
2015-11-13 13:55:05 +01:00
Eivind Fonn 88c019d4d6 Fix helm-spacemacs package action 2015-11-12 10:49:31 +01:00
Eivind Fonn a991927288 Beautify helm-spacemacs 2015-11-11 23:01:54 +01:00
Muneeb Shaikh 647ca88008 evilify package menu 2015-11-11 21:30:17 +01:00
Fabian Wilk 40270206dc Fixed default value of `open-junk-file-directory'.
This variable does NOT specify the directory portion for the junk file
creation; it is an alias for `open-junk-file-format'. Hence, it should
contain format markers for the randomisation of the junk file name.

The previous value would not auto-generate a junk name for the junk
file: the prompt would ask for a file extension without having an
auto-generated junk file name.
2015-11-11 21:29:28 +01:00
syl20bnr 5d9f6b67cd Refactor smooth-scrolling configuration
Use :if keyword for use-package
Move erc hook to post-init function in erc layer
2015-11-11 00:06:27 -05:00
syl20bnr 3ff39f10e4 layouts: move SPC l p to SPC p l and bind SPC p to previous layout 2015-11-10 23:39:21 -05:00
geksilla c39e8a9e53 Switch between columns layout toggle golden-ratio.
While columns layout change between 2 and 3 golden-ratio-mode toggle but
should not.

Fixes syl20bnr/spacemacs#3750.
2015-11-10 22:48:56 +01:00
Eivind Fonn 8125ccea8f Use evil-indent-plus for indent textobjs 2015-11-10 11:55:06 +01:00
Eivind Fonn b779846d14 Properly honor helm setting 2015-11-10 08:09:19 +01:00
Allen Li 42c97967b9 Unset unneeded scroll-margin in some modes
Fixes https://github.com/syl20bnr/spacemacs/issues/3098
2015-11-09 19:28:42 +01:00
Eivind Fonn a9e15236b2 Enhance default selection of face in helm-faces
Use symbol under point if no face
2015-11-09 18:55:53 +01:00
Muneeb Shaikh b5dbcf5027 Fix helm-faces to select face under point 2015-11-09 18:48:23 +01:00
Muneeb Shaikh 17f6225c5d Allow last-search-buffer to resume last search even if no saved search
With this patch, it's possible to resume last search done with ag even
if there's no saved search

Fixes #3707
2015-11-09 18:47:51 +01:00
justbur 51600ef9f0 Use MELPA version of evil-mc 2015-11-09 18:44:11 +01:00
Eivind Fonn d14f10e47d Override evil mouse support in helm (#3700) 2015-11-09 13:05:29 +01:00
syl20bnr 771b74ebf9 distribution: add layouts to spacemacs distribution 2015-11-09 00:36:17 -05:00
syl20bnr aed1811f76 perspectives: big refactoring
- Rename micro-states to "layouts"
- Rename some functions to include "layout" instead of "perspective"
- cleanup variables
- move functions to funcs.el
- move package specific stuff to post-init functions
- changes key bindings
- micro-state documentation rewrite
- change format of the layouts line in the micro-state doc
- defer loading of persp-mode which loads with `SPC l`
- always display the spacemacs home buffer with no switch
- various fixes
- various new bugs :-)
2015-11-09 00:36:09 -05:00
Joe Hillenbrand 5559060ab5 bind avy-goto-line to SPC y
After the change in 1d340dcc77,
there was some grumbling in gitter that `SPC L` is not as convenient
as `SPC l`. Apparently avy-goto-line is a popular function.

`SPC y` is chosen because it is:

- currently unused (as far as I can tell).
- sort of mnemonic because "avy" has a "y" in it.
- doesn't require SHIFT to type
- is accessible even on non-US keyboards
  (there were suggestions such ";" and "\" that are not as accessible
   on non-US keyboards)

This change also updates the documentation regarding the change from
ace-jump-mode to avy.
2015-11-06 01:29:49 -05:00
syl20bnr 1d340dcc77 Switch bindings avy-jump-line and perspective micro-state
So perspectives are on SPC l
and avy jump to line on SPC L

This is to have consistent lower case keys for "scopes":
- b for buffer
- f for files
- p for project
- and l for layout (perspective)
2015-11-05 00:28:30 -05:00
Eivind Fonn 3341ab4e4c Enable custom info+ modeline 2015-11-04 20:20:13 +01:00
Eivind Fonn 0567f5cdac Fix spacemacs/kill-other-buffers 2015-11-03 13:53:10 +01:00
ralesi 500c22e3c5 Helm locate automatically sets the locate command
Can't check simply for executable, as `helm-locate-set-command` is
always run.
2015-11-03 00:00:55 -05:00
syl20bnr df003f299f Defer ace-jump-helm-line and move it to C-q 2015-11-03 00:00:55 -05:00
ralesi 44109c3584 Add ace-jump-helm-line for quick helm navigation.
Useful when you don't desire filtering helm buffer but still want to
navigate.
2015-11-03 00:00:55 -05:00
syl20bnr b405752f6c Remove global infix in dotspacemacs-global-line-numbers
I feel that it is not needed because it makes not a lot of sense to
have it non global since it is a dotfile variable.

Also remove ' from the docstring for consistency.
2015-11-03 00:00:55 -05:00
Fabien Dubosson 612c3df265 Introduce 'relative for global-line-numbers
Allow to use 'relative as value for the dotspacemacs-global-line-numbers
setting. This enable relative global line numbers as it is a common
usage.
2015-11-03 00:00:55 -05:00
syl20bnr 34ce7a0c23 Move lorem ipsum to SPC x i l and declare prefixes
This a rarely used key binding so we can nest it a little bit more and
free some key bindings in the `text insert` namespace.
2015-11-03 00:00:54 -05:00
Fabien Dubosson 5f7c3d067f Add the lorem-ipsum package
Add the `lorem-ipsum` package to insert text, and bind it to:

* `xil`: lorem-ipsum-insert-list
* `xip`: lorem-ipsum-insert-paragraphs
* `xis`: lorem-ipsum-insert-sentences

`x` as it's text related, and `l` for `list, `p` for `paragraph` and `s`
for sentences.
2015-11-03 00:00:54 -05:00
Eivind Fonn b19e6f139e Add SPC hdF describe-face binding 2015-11-03 00:00:54 -05:00
syl20bnr 25c9d126ab Refactor spacemacs-base/init-recentf
Use progn forms and unify setq expressions.
2015-11-03 00:00:54 -05:00
Peter Duerr fb36140e44 Increase number of stored recent files to 1000 2015-11-03 00:00:54 -05:00
Peter Duerr c2ae7ce9d2 Move recentf initialization to :init section
* In the :config section, the parameters cannot easily be overridden by
  the user.
2015-11-03 00:00:54 -05:00
Eivind Fonn fa975c4c45 Fix helm-spacemacs with new FAQ.org format 2015-11-02 15:05:39 +01:00
Fabien Dubosson b644f8abd7 Move auto-dictionary to spell-checking and activate it
This commit moves the – previously disabled – `auto-dictionary` code to
the `spell-checking` layer and activate it. It is now enabled by
default, but can be disabled by setting `spell-checking-auto-dictionary`
to `nil`.

`auto-dictionary` comes with some interesting improvements:

- Tries to automatically detect what is the language of the buffer and
  activate the corresponding dictionary.

- When a buffer is opened, all spelling mistakes are shown without
  needing first to be under the cursor.

- When the dictionary is changed, the whole buffer is reanalyzed for
  spelling mistakes (close #2088).
2015-10-31 14:24:54 +01:00
Muneeb Shaikh db453acbd6 Customizable whitespace-cleanup
- Default: cleanup whitespace on changed lines
2015-10-31 14:16:31 +01:00
Adam Olsen 68fa0330e4 Make NeoTree more "vim" friendly
This rebinds keys in NeoTree so that `g` and `G` work correctly
2015-10-31 14:10:57 +01:00
justbur 11f50cf2d8 which-key: Allow evil-operators to popup buffer 2015-10-31 14:05:19 +01:00
Fabien Dubosson c3299f0eca Make linum toggle local and add a variable for global mode
`global-linum-mode` is making line numbers appearing in `*spacemacs*`
and `helm` buffers, what is annoying.

This change make the linum `SPC t n` toggle buffer-local, and add a
customization variable in `.spacemacs` to enable line numbers globally.
«Globally» here as to be understood as «in `prog-mode` and `text-mode`».
2015-10-29 19:30:06 +01:00
Eivind Fonn 3f80d334d4 Remove obsolete evil-jumper-file 2015-10-29 13:48:46 +01:00
Eivind Fonn afd9d6c85e Fix unicode minor modes separator in terminal 2015-10-27 14:41:05 +01:00
Sebastian Wiesner 12aa53fc36 Fix debug on error toggle
Add :status option and manage :on and :off manually.  Without :status
the message is wrong (always says enabled), and with :status we need an
explicit :on and :off, because otherwise the toggle would always disable
the flag.

Not sure what’s going on here, but this one works correctly now.
2015-10-25 10:50:00 +01:00
justbur e6ede2e49a which-key: Add new smart search description 2015-10-25 10:49:05 +01:00
Fabien Dubosson 81952b0977 Declare spacemacs/write-file as not repeatable
Close #3433.

`evil-repeat` repeat the last action, but ignore calls to `write-file`
or `evil-write`. `spacemacs/write-file` is a wrapper around those two
function, so it should be ignored to.
2015-10-25 10:47:57 +01:00
Eivind Fonn 50e1f3ea3f Move compilation-scroll-output to config.el 2015-10-25 10:46:47 +01:00
Joe Hillenbrand 76b795d17e setq compilation-scroll-output first-error
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Compilation.html
2015-10-25 10:44:48 +01:00
Eivind Fonn e776ada203 Temporarily disable helm-flx for find files 2015-10-24 19:25:11 +02:00
Sebastian Wiesner feeab93a1c Don’t change custom-file if already set
Allows users to change the location of custom-file safely.
2015-10-22 22:10:37 -04:00
Igor Avdeev 5db0ca4b0c Make google translate language code case-insensitive 2015-10-22 21:58:13 -04:00
Eivind Fonn 7279844ec4 Add custom helm modeline 2015-10-22 18:36:33 -04:00
Eivind Fonn f9f12c265f Fix modeline update (broken by upstream) 2015-10-22 16:06:50 +02:00
Muneeb Shaikh c72199b57d Add restart-emacs on SPC q r 2015-10-21 17:24:48 -04:00
Ernestas Lisauskas 04fbe5da24 Remove avy-keys config value 2015-10-21 17:09:32 -04:00
Driftcrow 31e0976742 Fix SPC j k unwanted auto-comment
When the cursor is on a commented line, the next indented line was
commented as well.
2015-10-19 00:22:06 -04:00
Fabien Dubosson ab23559047 Adapt project-search keybindings
For buffers, `*` search for the word under the cursor, and `/` ask to
search for an expression. To keep the same mnemonic at project level,
this commit change `SPC /` to ask for an expression to search, and add
`SPC *` to search for the expression under the cursor (in fact the only
difference being the expression pre-filled inside the input field).
2015-10-19 00:20:59 -04:00
Eivind Fonn 8fbfebb955 Override C-s in SPC p p to use other search tools 2015-10-19 00:15:12 -04:00
justbur 94cee58a1e spacemacs-layer: Fix linum-relative-mode
The toggle is being called after the package is loaded, but the package
is deferred based on a call to the toggle. This means that the first
time toggle is used it's called at least twice. Furthermore, `(setq
linum-format 'linum-relative)` effectively turns on the mode as it is.

Possible fix for #2161
2015-10-19 00:02:46 -04:00
Eivind Fonn a5ac542ef1 Add helm-flx
See #3327
2015-10-19 00:00:15 -04:00
justbur 44cb780f25 emacs-lisp: Use auto-compile package
Also add key bindings for compiling and showing the compile log.
2015-10-18 23:59:47 -04:00
Sebastian Wiesner 6652e0d8b8 Add bindings for local variable commands
- fvd: Add a directory variable
- fvf: Add a file variable
- fvp: Add a file variable to property line
2015-10-18 23:56:46 -04:00
justbur c5e01eb781 core-keys: Make TAB more useful in help buffers
In help buffers, TAB in emacs state allows you to jump through the
links. This allows for the same behavior in motion state. This is very
useful for jumping to function definitions.
2015-10-14 00:39:14 -04:00
Fabien Dubosson e5dbfa0032 Add switch-to-scratch-buffer function and bind it
This change add a `switch-to-scratch-buffer` function allowing to – you
guessed it – switch to the `*scratch*` buffer, taking care of creating
it if necessary. The function is bind to `SPC b s`, `b` as it concerns
buffers, and `s` for `scratch`.
2015-10-12 09:34:46 -04:00
Sebastian Wiesner 2b87b3d8ea Use tab-width instead of default-tab-width
default-tab-width is obsolete since Emacs 23
2015-10-10 23:55:52 -04:00
syl20bnr 4df7958115 spacemacs-base: simplify url init func 2015-10-10 23:54:09 -04:00
Diego Berrocal 0be2e58308 Make Gravatar cache go into Spacemacs cache dir 2015-10-10 23:49:37 -04:00
Sebastian Wiesner 41a024c206 Use save-place-mode when available
Emacs 25 defines save-place-mode, to be used instead of
(setq save-place t)
2015-10-10 23:43:44 -04:00
Sebastian Wiesner a3affa6554 Enable bug reference prog mode 2015-10-10 23:26:03 -04:00
syl20bnr 74a717f2bb spacemacs-base: use new sorting function which-key-key-order-alpha
Which sorts the keys like in the READMEs and like the code.
2015-10-10 22:29:39 -04:00
Fabien Dubosson 8d3c59c78f Discard buffer from marker, switch to it when asked 2015-10-09 12:11:24 +02:00
Fabien Dubosson 6442e00b2e Use a temp buffer to read the FAQ in helm-spacemacs
Correct a bug in helm-spacemacs: Whenever a function was needing the
FAQ's candidates in helm-spacemancs (`SPC f e h` and `SPC f e f`), the
`FAQ.org` file was open in a buffer and not closed. This commit corrects
this by loading the content of `FAQ.org` in a temp buffer and switch it
to `org-mode` in order to get the candidates.
2015-10-09 12:11:24 +02:00
Pierre Radermecker f3f88b4d28 Fix #3214: add back split-window-and-switch func
Theses func came back from the old spacemacs/funcs.el file
2015-10-09 12:08:40 +02:00
syl20bnr cdea5716ed spacemacs-core: use new sort function which-key-prefix-then-key-order 2015-10-07 19:26:28 -04:00
syl20bnr 31229cb1f5 spacemacs: add evil-mc package
evil-mc is a new attempt to bring multiple cursors to evil users.
Enable it by adding `(global-evil-mc-mode)` then use
g r m to mark all
g r u to remove cursors
g r p to pause cursors
g r r to resume
g r h to add a cursor at point (cursors must be paused first)

Package repo: https://github.com/gabesoft/evil-mc
2015-10-07 18:17:01 -04:00
Andrew Burkett cb65a9adaf Remove server-kill-buffer from frame-killer 2015-10-07 15:51:40 -04:00
syl20bnr 0cbe01433d Move (setq help-window-select 't) to spacemacs-base 2015-10-07 15:51:40 -04:00
syl20bnr c070f81951 spacemacs-base: add <backtab> binding to go up a directory with helm 2015-10-07 15:51:39 -04:00
justbur bb1ed81aca helm: Backtab to go up directory in helm
The key binding wasn't taken, so I figured it couldn't hurt. There's a
nice symmetry with using Tab to enter a directory.
2015-10-07 15:51:39 -04:00
Fabien Dubosson b1fc99bdee Improve keybindings for text-region counting.
Emacs provides a `count-words-region' which is badly named as it counts
not only words, but also characters and lines. The current keybinding
for this function `SPC x w c' implies it's referring to words only. The
new mapping `SPC x c` is more coherent since it means counting text,
whether it is characters, words or lines. An alias `count-region` is
created to be less confusing in which-key description.

`SPC x w c` being free, `spacemacs/count-words-analysis` is remapped to
it instead of `SPC x w C` to save one keystroke.
2015-10-07 15:51:39 -04:00
Eivind Fonn 1c06e2369c Use helm or ibuffer to provide :ls 2015-10-07 15:51:39 -04:00
Fabien Dubosson 66bd2d326e Improve count-words-analysis output
The `spacemacs/count-words-analysis' function displays results with the
default elisp formatting of associative list. This change improves it by
changing the format to a more human-readable form, and also by ordering
results by frequencies first, and then alphabetically in case of tie.
2015-10-07 15:51:39 -04:00
person808 c1b6293268 Replace eval-after-load with with-eval-after-load.
We now backport the macro for 24.3 so we can use it everywhere.
2015-10-07 15:51:39 -04:00