Commit graph

98 commits

Author SHA1 Message Date
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
Kechao CAI 963621697a spacemacs-base: add prefix for ripgrep search 2016-11-12 14:32:33 +08: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
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
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 721426f75c Warn if both helm and ivy are enabled 2016-10-29 15:26:05 +02:00
Eivind Fonn 4bf8e529b8 Move SPC p C-g to SPC p G 2016-10-28 13:44:29 +02:00
Nir Friedman 632e4cea6e Add keybindings to move buffers by window number 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
deb0ch 3b92a4c2bf maximize frame earlier in the startup process 2016-10-23 19:44:35 +02:00
Valentin Ignatyev f57df781ad Fix #6947 by deriving conf-mode from text-mode 2016-10-17 20:03:02 +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
bmag 797b5b08b7 golden-ratio: add to window TS only when used 2016-10-17 13:43:54 +02:00
Philippe Baron b7467c4335 Update rules for evilified state
Fixes #5738 
* Pointed out which keys are using as in Evil
* Pointed out the binding order pattern
* Added that the g binding will be directly bound to C-G
2016-10-17 13:17:34 +02: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
syl20bnr 62f08d89fb Rename dotspacemacs-ex-key to dotspacemacs-ex-command-key
Also move the configuration to evil init function.
2016-10-09 21:28:09 -04:00
Dietrich Daroch d1457feafb Restore easy ex-command remap
Pressing semi-colon is easier than the default colon.

Added ex-key defvar too
2016-10-09 13:21:31 -04:00
syl20bnr 703f78c2b8 Cleanup pass on file spacemacs-base/funcs.el
- Apply `/` and `//` rules (double / is for private functions)
- Add missing `spacemacs/` prefixes
- Move functions used outside of spacemacs-base layer to
  core/core-funcs.el
- Remove unused functions

Commit originally intented to only rename linum-update-window-scale-fix
to spacemacs/linum-update-window-scale-fix :-)
2016-10-09 13:14:41 -04:00
Nathan Spaeth 8eac8c4ecf Adjust linum gutter to accomodate text-size changes 2016-10-08 19:48:21 +02:00
bmag 70c7592718 elisp test buffer: run only current buffer's tests 2016-10-08 19:44:10 +02:00
Laurens B 95a8f4e0b9 Add optional frame arguments for transparency toggle/in/decrease. 2016-10-08 19:33:40 +02:00
bmag cded126cab Update hybrid state to upstream changes
insert state has changed upstream, this updates hybrid accordingly.
Relevant upstream commit:
2d3c01d802
2016-10-03 00:23:15 -04:00
syl20bnr bcf2ce6ca4 Move SPC b k to SPC b C-d 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
Eivind Fonn 53d2ae4f15 Remove evil-smart-goto-definition 2016-09-14 11:38:14 +02:00
Eivind Fonn 060934a4f0 Add evil-goto-definition as default jumper 2016-09-14 11:34:39 +02:00
JAremko c5be9c23a0 Recenter buffer when content width increase. 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 d998c7edf5 Move SPC p G to SPC p C-g to regenerate tags
I have the impression that SPC p G can be used for something more
useful regarding tags.
Tags regeneration triggers a process that can take a while to make
more sense to make it less accessible.

If there is nothing useful to be added to SPC p G we can consider
reverting this commit.
2016-08-31 22:32:27 -04:00
syl20bnr 1b4efdddc3 Move projectile-find-tag from SPC p y to SPC p g
SPC p g was free so why not using it.
2016-08-31 22:32:22 -04:00
syl20bnr 463be7916c Move SPC b t to replace SPC p o by org-projectile/goto-todos
SPC p o was for projectile-multi-occur which is not really useful given
the alternative provided by Spacemacs

If this binding is really important we can consider adding it back
on SPC p O or find another way to integrate multi-occur in Spacemacs.
2016-08-31 22:32:16 -04:00
ralesi a7d4674202 Auto center spacemacs-buffer on window resize. 2016-08-31 18:29:12 +02:00
syl20bnr c1c2d06f36 Remove SPC j F and SPC j V and add SPC m g G in Emacs Lisp
SPC j F and SPC j V don't fit the SPC j prefix because they require
the thing under point to be an Emacs lisp thing, which means that these
bindings should be major mode specific.
To replace them and accordingly to the convention the key bindings
SPC m g G in Emacs Lisp buffers has been added to go to definition
in other window.

SPC j f and SPC j v (minus letters) don't require the current buffer
to be Emacs Lisp and thus I only updated the documentation about them
mentioning that they're about Emacs Lisp variables and functions.
2016-08-25 21:19:21 -04:00
syl20bnr e4b15b16de Dispatch function spacemacs/jump-in-buffer to layers
Use imenu init and post-init functions to leverage the layer system and
get better isolation of configuration.
2016-08-25 20:42:01 -04:00
Eivind Fonn c1a8427488 Allow align-repeat to work with empty regexps 2016-08-24 11:13:06 +02:00
Muneeb Shaikh 6b3f4f0f54 spacemacs-base: evilify occur mode 2016-08-22 21:13:10 +02:00
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
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