Commit graph

198 commits

Author SHA1 Message Date
Eivind Fonn
62ec37a9e4 Integrate ahs with evil as well as isearch 2016-11-09 21:40:43 -05:00
Diego Berrocal
a6554a5773
Fix Typo in Purpose Layer 2016-11-02 21:29:40 +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
Bryan Gilbert
b515253026 move helm specific layout transient state keybindings to helm layer 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
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
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
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
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
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
Eivind Fonn
e0202848fd Diminish purpose-mode 2016-10-17 12:01:10 +02:00
Eivind Fonn
c24f59cc7e Fix some comments in purpose layer 2016-10-17 10:40:30 +02:00
Eivind Fonn
2a2fb56452 Fix spacemacs-purpose-popwin name 2016-10-17 10:07:29 +02:00
syl20bnr
d023af2f55 purpose: use use-package :post-config hook for eyebrowse config 2016-10-16 22:25:04 -04:00
syl20bnr
8063bcb419 purpose: move helm-purpose config to use-package form 2016-10-16 22:25:04 -04:00
syl20bnr
aea110df9f purpose: remove unecessary :commands block
The functions are already autoloaded.
2016-10-16 22:25:04 -04:00
syl20bnr
c8827444ec purpose: move window-purpose key binding and mode activation to :init 2016-10-16 22:25:04 -04:00
syl20bnr
e41a17be4c purpose: use use-package hook for popwin config
Also remove the check on purpose-mode. Using the purpose layer without
purpose-mode does not make sense so I prefer to throw an error is such
case happens.
2016-10-16 22:25:04 -04:00
syl20bnr
be2061c7a0 purpose: replace use-package :after by (require ...)
Also move :config to :init
2016-10-16 22:25:04 -04:00
syl20bnr
67f9f4828d purpose: replace use-packag :if by layer :toggle 2016-10-16 22:25:04 -04:00
syl20bnr
8306626504 Move window-purpose layer to spacemacs-purpose layer
Update README.org and add spacemacs-purpose layer to spacemacs
distribution.
Move functions of the layer to funcs.el and prefix variables and
functions introduced by the layer with `spacemacs`.
2016-10-16 22:25:04 -04:00
bmag
f9c74e2b58 Synchronise load/save of workspaces and layouts
Update current layout's workspaces before saving layouts to file (fixes
7214).
Load current layout's workspaces after loading layouts from file, if it's
one of the loaded layouts (fixes 6979).
2016-10-03 00:23:15 -04:00
duianto
98b5a2be4f
three words spellchecked
"horizonatl", swapped "a" and "t", resulting in: "horizontal"

"porpertized", swapped "o" and "r" , resulting in: "propertized"
"containg", added "in", resulting in: "containing"
2016-09-23 10:51:19 +03:00
Abdo Roig-Maranges
68becc5597 layouts: persp-mode changed variable to enable ido-hooks
Since persp-mode 2.5 the way to enable ido hooks changed again. Without
tihs, SPC b b lists all buffers instead of persp-local ones.
2016-09-20 20:09:22 +02:00
bmag
753b81275c dumb-jump: bind key instead of enable mode 2016-09-16 15:07:05 +02:00
Eivind Fonn
f373105be1 Disable smartparens highlighting 2016-09-14 14:46:01 +02:00
Muneeb Shaikh
6d17a90d0c fix void variable when not using osx layer
Fix `Symbol's value as variable is void: osx-use-dictionary-app` when
not using osx layer.
2016-09-06 12:29:48 +05:30
JAremko
ad547c390d Fix buffer edges bug. 2016-09-05 21:12:52 -04:00
JAremko
cfd6b06669 space-doc: Don't clean the global cache. 2016-09-05 21:12:52 -04:00
JAremko
91df3b1c13 space-doc: Use text properties instead of overlays. 2016-09-05 21:12:52 -04:00
JAremko
95f4119366 disabled by default centering in space-doc-mode.
Fix centered-buffer-mode conflict with Emacs 25
2016-09-05 21:12:52 -04:00
syl20bnr
047b57223a Fix packages list for spacemacs-language 2016-09-05 11:51:30 -04:00
deb0ch
fc23818c1c fix 4b2f123: do not remove workaround 2016-09-01 00:56:22 +02:00
bmag
64a1b85523 NeoTree: clarify docs 2016-08-30 15:55:48 +02:00
bmag
1bca514d25 Fix neotree TS 2016-08-30 15:55:46 +02:00
Muneeb Shaikh
a5579ffce7 neotree: add ts for easy discoverabilty of keys
Fix #6867
2016-08-30 15:55:45 +02:00
bmag
4b2f123a05 neotree window: assign 0 only when at top-left 2016-08-30 15:53:25 +02:00
Muneeb Shaikh
8e1d449754 osx: add osx-dictionary and make it default for OS X 2016-08-27 21:26:43 +05:30
Eivind Fonn
928983da47 Refactor jump to definition
This commit defines:

- spacemacs-default-jump-handlers: a list of functions that can jump to
  definition in ALL modes.

- spacemacs-jump-handlers-MODE: a list of functions that can jump to
  definition in MODE.

- spacemacs-jump-handlers: a buffer-local list of functions that can
  jump to definition. This is made up of the values of the two previous
  variables whenever a given major mode is activated.

- spacemacs/jump-to-definition: a function that tries each function in
  spacemacs-jump-handlers in order, and stops when one of them takes us
  somewhere new.

- spacemacs|define-jump-handlers: a macro that
  * defines spacemacs-jump-handlers-MODE, possibly filled with initial
    functions
  * defines a function that is added to the hook of the given MODE
  * binds “SPC m g g” of that MODE to spacemacs/jump-to-definition

This is an attempt to harmonize all the different approaches to jumping.
Specifically,

- Existing intelligent jump packages that work for only a single mode
  should go to the beginning of spacemacs-jump-handlers-MODE. E.g.
  anaconda for python, ensime for scala, etc.

- Packages like gtags that work for several modes (but potentially not
  all) and which is dumber than the intelligent jumpers should go the
  the END of spacemacs-jump-handlers-MODE.

- Packages like dumb-jump that work for all modes should go to
  spacemacs-default-jump-handlers.

In all cases the order of the jump handlers in each list should be from
most to least intelligent.

Fixes #6619
2016-08-22 15:08:25 +02:00
Abdo Roig-Maranges
a52422e653 layouts: fix B b b not restricting to layout-local buffers
This fixes two issues regarding layouts.

1. Since Bad-ptr/persp-mode.el@e950bf15, persp-mode requires setting
persp-hook-up-emacs-buffer-completion in order to install the hooks for
ido & friends. This variable is nil by default, making SPB b b not
restrict to layout-local buffers.

2. The function spacemacs-layouts/non-restricted-buffer-list removes a
hook and re-adds it later. This makes the assumption that the hook was
already present. If it was not (due to 1) then SPC B b changes global
state by adding that hook. Instead, just let-bind the hook variable
for the scope we need it changed.

This explains and partially fixes #5788 and #6266. It does not fix the
dependency on ido-mode. If ido-mode is excluded, persp-mode will not
install the hook for ido, and SPB b b will still be unrestricted.
2016-08-22 15:00:59 +02:00
d12frosted
4071e0c215
improve spacemacs/open-junk-file doc string 2016-08-22 08:55:57 +03:00
André Peric Tavares
3e84c91f1d Remove duplicated words in docstring
"Open junk file" is duplicated in the docstring.
2016-08-21 14:50:26 -03:00
JAremko
328c6b81aa Add aspect ratio check for centering.
Fix git conflict.
minor improvements and cleanup.
2016-08-21 17:29:19 +02:00
JAremko
7140e8dfa8 Add extra checks, cleanup
simplify space-doc customization

rearrange defcustom groups

more checks
2016-08-21 17:29:16 +02:00
JAremko
9ba525cdde simplify space-doc-mode
refactoring
2016-08-21 17:29:13 +02:00
JAremko
7e1eae0b9a space-doc/centered-buffer improvements.
reformat

fix stuff

make sure that user wants overlays
2016-08-21 17:29:08 +02:00