Commit Graph

329 Commits

Author SHA1 Message Date
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
Eivind Fonn d8833215b0 Make scratch buffer major mode configurable 2016-01-11 01:13:10 -05:00
syl20bnr 6d1df2845f core: remove evil variable aliases and change default to nil
People transitioning from Vim could be surprised if we set these
variable to t by default, so setting them to nil respects better
the POLA principle.

Impacted variables:
dotspacemacs-ex-substitute-global
dotspacemacs-remap-Y-to-y$
2016-01-11 01:13:10 -05:00
Fredrik Bergroth 71aa5f6616 Add dotspacemacs-ex-substitute-global setting
If non-nil, this setting inverts the behavior of the 'g' flag in

    :s/pattern/replacement/g
2016-01-11 01:13:10 -05:00
syl20bnr 53d55d3da6 core: offer completion framwork choice in wizard 2016-01-09 14:19:01 -05:00
syl20bnr 4a51254f05 core: backward compatibility with dotspacemacs-command-key 2016-01-09 02:23:04 -05:00
syl20bnr 58e5241c8d dotfile: rename dotspacemacs-command-key for dotspacemacs-emacs-command-key
And change the key from ":" to "SPC"
This key does not try to bind evil ex-command anymore, it only bind
M-x behind the leader key.
2016-01-09 01:53:24 -05:00
syl20bnr 63fbdb4e01 core: change dotspacemacs-whitespace-cleanup default value to nil
And update documentation

Fixes #4386
2016-01-05 00:37:19 -05:00
syl20bnr 96a648d1da Update deprecation TODO to 0.106 2016-01-03 22:46:01 -05:00
justbur 46f36dc74d core: Declare macro before it's called 2015-12-21 00:42:52 -05:00
justbur 39760a1cfe core: Update to preferred versions of functions
1. Don't use beginning-of-buffer (or end):
   These are for interactive use only according to compiler

2. reduce => cl-reduce

3. next-line => forward-line
   next-line is only for interactive use

4. set-default-font => set-frame-font
   set-default-font is obsolete since 23.1

5. show-subtree => outline-show-subtree (alias)

6. show-all => outline-show-all (alias)
2015-12-21 00:25:41 -05:00
syl20bnr 4be87ef4cb core: rename dotspacemacs-version-check-enable
to dotspacemacs-check-for-update
2015-12-11 01:47:34 -05:00
Eldon Nelson 2b4f259389 Add dotspacemacs variable to skip check for update 2015-12-11 01:40:19 -05:00
syl20bnr 26ecdee0e3 New dotspacemacs variable `dotspacemacs-elpa-timeout`
Increase timeout from 3 seconds to 5 seconds.
2015-12-06 02:22:49 -05:00
justbur 246ebc1a27 core-keys: Enable distinction between C-i and TAB
Added dotfile variable to template and core-dotspacemacs.el

After enabling, if C-i is translated to the "key" <C-i> which allows you
to bind a separate command in the GUI like this

(define-key map [C-i] 'c-i-command)

or this

(define-key map (kbd "<C-i>") 'c-i-command)

This has the side effect of no longer making C-i default to TAB in the
GUI, but will not affect the TAB or <tab> bindings.

Removes spacemacs//handle-terminal-keys
2015-12-04 00:23:10 -05:00
syl20bnr 1061adbac9 New variable dotspacemacs-elpa-https
If non nil use HTTPS otherwise use HTTP.
Default is t.
2015-11-18 13:50:30 -05:00
Bar Magal 1a91e3ea14 Home buffer: make number of recent files configurable #2335
Fixes issue #2335
2015-11-15 12:33:23 +01:00
caleb 1a917c429c fix typo for spacemacs-base option 2015-11-15 12:19:54 +01:00
syl20bnr 9290acf058 layouts: new variable dotspacemacs-auto-resume-layouts
If non nil then layouts are automatically resumed upon start.
Also always enable persp-mode (i.e. remove lazy loading of it).

Fixes #3736
2015-11-11 00:59:17 -05:00
syl20bnr 4004f8d383 layouts: split dotspacemacs-default-layout-name into 2 variables
dotspacemacs-default-layout-name is only to set the name
new variable dotspacemacs-display-default-layout controls the display
of the default layout in the mode-line
2015-11-11 00:55:42 -05:00
syl20bnr 9e5e309bf0 dotfile: new variable dotspacemacs-max-rollback-slots
Replaces the old spacemacs-number-of-rollback-slots
2015-11-11 00:14:46 -05:00
syl20bnr 098b173877 Split comments to no go past the 80th column in the dotfile template 2015-11-10 23:49:07 -05:00
Muneeb Shaikh 6b3e82d2d9 Allow customization of the default layout name in mode-line
- Changed dotspacemacs variable
2015-11-09 18:43:05 +01: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
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
Yiming Chen c0570e7481 Fix C-u dotspacemacs/sync-configuration-layers 2015-11-02 00:19:44 -05:00
Muneeb Shaikh db453acbd6 Customizable whitespace-cleanup
- Default: cleanup whitespace on changed lines
2015-10-31 14:16:31 +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
Eoin Houlihan 1a853d5759 Fix minimize spelling mistake 2015-10-14 00:32:46 -04:00
Daniel Luna b4545a7b96 Shows error in *Messages* buffer when loading .spacemacs 2015-10-14 00:26:13 -04:00
syl20bnr 455dd22553 core: set error flag when calling user dotfile functions 2015-10-12 09:58:46 -04:00
justbur 8b5428d320 core-dotspacemacs: Make call-func macro safer
Catch errors in executed function and signal them to the user in the
spacemacs buffer. We don't want loading to silently fail because there
is a problem in dotspacemacs/user-config for example.
2015-10-12 09:53:37 -04:00
syl20bnr 1cf9b73f84 core: replace powerline by spaceline 2015-10-11 00:16:47 -04:00
Eivind Fonn 92254bc3af code: refresh modeline after syncing 2015-10-10 23:21:03 -04:00
syl20bnr 3c7ad38e4d core: remove dotspacemacs-verbose-loading
verbose is activate with --init-debug
2015-10-07 15:51:40 -04:00
justbur 539ff07890 core-keys: Allow major-mode-leader to be nil
The dotfile says that setting the major-mode leaders to nil will disable
the functionality, but there were a couple of places where that option
was not being respected.
2015-10-07 15:51:39 -04:00
person808 28c5298f4c Use built-in evil variable to set Y behavior. 2015-10-05 12:17:27 +02:00
Eivind Fonn a64e1cf5d0 Document cursor color by state only in GUI
Fix #1944

[ci-skip]
2015-10-05 12:07:45 +02:00
syl20bnr 14fd2b48e9 New variable dotspacemacs-remap-Y-to-y$ 2015-09-28 23:09:44 -04:00
syl20bnr 383b1bec20 Update dotspacemacs/config and dotspacemacs/init occurrences 2015-09-28 02:05:18 -04:00
person808 952a848738 Add missing value to dotfile tests. 2015-09-23 18:08:28 -10:00
syl20bnr fe4d6a7d79 core: fix dotspacemacs/install and tweak choice descriptions 2015-09-19 01:05:17 -04:00
syl20bnr a4fd6407b2 core: tweak prompt for dotfile recovery 2015-09-16 21:37:42 -04:00
Christopher McCloud 44f1ee55d7 add recovery from malformed .dotfile to core
If spacemacs encounters errors on the initial load of the user
.spacemacs file, now defaults to loading the default template.
Additionally, temporarily suspends pruning of orphan packages to make it
easier for users to recover after they fix their dotfile.

Previously, errors would cause the spacemacs boot process to halt,
leaving users with an almost stock emacs configuration. Now, users will
have a default spacemacs available to them to fix the error.

adds layer preservation.

add prompt for preferred editing style on recovery

Remove advice after first run.

add dotspacemacs/safe-load as function.

moves style prompt into dotspacemacs/init advice

add hybrid as valid editing style.

move conditional into dotspacemacs/load-file.
2015-09-16 21:28:12 -04:00
Robert O'Connor 3f2e885811 Rename spacemacs-core to spacemacs-base
Per the discussion in #3002. A comment in #3047 prompted this PR.
2015-09-16 21:22:35 -04:00
justbur 098e43c8ff Temporary fix for #2995
This sets the default distribution back to spacemacs. This is for people
who for whatever reason don't set `dotspacemacs-distribution` in their
dotfile.
2015-09-12 13:52:52 +02:00
syl20bnr 3b7d66d118 sync-configuration-layers: add option to skip tests 2015-09-11 23:04:55 -04:00
syl20bnr 6e0ca23db8 core: set default distribution in template to spacemacs-core
Also remove version-control layer from template and add emacs-lisp
to initial value for dotspacemacs-configuration-layers
2015-09-11 23:00:33 -04:00
justbur f59cb5b215 core: Add choice of distro on install
Ref #2926
2015-09-11 21:27:36 -04:00
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00
syl20bnr 6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
  spacemacs-core (default spacemacs)

spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04:00
ralesi 2ccb4ab7df Allow specification of helm location. 2015-09-07 01:06:29 -04:00
syl20bnr d11fb1c4a0 core: add variable dotspacemacs-helm-no-header
Hide the helm header whenever there is only one source.
Also correctly set back the default height for headers.
2015-09-07 01:06:29 -04:00
justbur bd8369918b Clean-up which-key dotfile options 2015-09-07 01:06:27 -04:00
Tim Jäger 91057d5986 Switched dotfile options to which-key
Renamed option
Added buffer position option
Updated template
Updated documentation
2015-09-07 01:06:27 -04:00
Eivind Fonn 973a1b6c48 Bugfix: call user-config when syncing layers 2015-09-02 08:28:02 +02:00
syl20bnr fba874d64d core: add hybrid as allowed value in dotfile 2015-08-31 23:35:28 -04:00
syl20bnr 92b8c31e36 core: always execute all dotfile tests 2015-08-31 23:27:18 -04:00
syl20bnr cf5e12100d core: save dotfile before executing the tests 2015-08-31 23:26:47 -04:00
syl20bnr 18611cfbd2 core: compute list of dotspacemacs variables for init tests 2015-08-31 23:16:14 -04:00
syl20bnr 04b2a3a459 core: tweak dotfile test results buffer modes
Make it read-only in view mode with indent mode one.
Disable flyspell if necessary.
2015-08-31 22:14:12 -04:00
syl20bnr 40c01e67b7 core: wrap long lines in core-dotspacemacs.el 2015-08-31 22:08:10 -04:00
syl20bnr 26b2a5c029 core: execute dotfile tests when SPC f e R
The test results buffer is displayed only if there are errors.
Make dotspacemacs/test-dotfile return non-nil when all the tests passed.
dotspacemacs/test-dotfile takes an optional parameter to hide the
result buffer.
2015-08-31 21:52:47 -04:00
justbur a30695c459 Convert dotspacemacs-tests to org-mode output 2015-08-31 21:26:10 -04:00
justbur 51022543a8 Add tests for correctness of .spacemacs
Note this makes a critical (but backwards compatible) change
to .spacemacs.template
2015-08-31 21:26:03 -04:00
ralesi 4d96e652ad Set up resize setting to enable auto-resize for helm. 2015-08-30 23:54:11 -04:00
syl20bnr e410812d59 New macro dotspacemacs|symbol-value and improved diminish
Now it is possible to have unicode symbols in GUI and not in
terminal using emacsclient

Do to so, dotspacemacs-mode-line-unicode-symbols must be set to
the symbol 'display-graphic-p which will be lazily evaluated
via the macro dotspacemacs|symbol-value

This is especially useful for users having troubles with unicode
characters in their terminal but wants to use them in GUI client.
2015-08-14 12:25:54 -04:00
justbur 252f26d555 Make default private layer directory explicit 2015-07-23 22:28:26 -04:00
justbur e1eed07c30 Add option for .spacemacs.d/init.el .spacemacs file
Setting SPACEMACSDIR overrides location of .spacemacs.d

Add dotspacemacs-directory variable

Add dotspacemacs-directory to layer search path
2015-07-23 22:25:39 -04:00
syl20bnr 0ad99623a4 Add "any" value for dotspacemacs-highlight-delimiters 2015-07-23 20:41:52 -04:00
syl20bnr 26c4e2ab80 core: remove monokai and zenburn from dotfile template
They are not part of spacemacs core since several releases so
they should not be treated differently than other themes.
2015-07-09 01:01:20 -04:00
syl20bnr 9213c6b7f2 core: change default value for dotspacemacs-themes
Make spacemacs themes official default themes for spacemacs
2015-07-04 23:51:32 -04:00
syl20bnr cd70f04827 Refactor auto-save of files
See committed documentation.
2015-06-18 23:54:07 -04:00
Tu Do 4a19bd9d33 [Fix #1453] Re-enable auto-save-mode
- Re-enable
- Move all autosave files to spacemacs-cache-directory
- Allow Auto-saving directly on current buffer.
- Add option to customize.
- Update .spacemacs template.
2015-06-18 23:13:26 -04:00
syl20bnr 549b18a97e New dotfile variable dotspacemacs-use-ido 2015-05-31 21:48:16 -04:00
Yen-Chin Lee afde9f223c dotspacemacs/location should respect dotspacemacs-filepath value
Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
2015-05-02 22:11:55 -04:00
person808 ab6a987d96 Fix typos in .spacemacs template. 2015-04-27 23:29:44 -04:00
syl20bnr 5930597e50 New variable: dotspacemacs-additional-packages
Adding packages to this list will install them without
needing them to be wrapped in a layer.
Ideal for niche languages of any package that don't need
any configuration.
2015-04-21 00:33:23 -04:00
syl20bnr 953209214e Change `scope` to `current` and default to `all` for now
Also made the delimiters ultra-bold.
2015-04-19 01:04:05 -04:00
Tu Do 8bf70ec3ba [feature] Add highlight-parentheses [#1173]
highlight-parentheses highlights the sexp scope the cursor is in and
3 upper sexp levels. We don't have to actually place the cursor on a
parenthesis just to see where it ends or begins. This package takes of this
issue regardless where we are in the sexp.
2015-04-19 00:42:09 -04:00
syl20bnr fdd4e944ef Reload dotfile and layer anywhere with `SPC f e R`
Replace `SPC m c c` and `C-c C-c` in the dotfile

Resolve #1210
2015-04-18 23:40:24 -04:00
syl20bnr 71b68500d0 New dotfile variable `dotspacemacs-search-tools`
Default list is `("ag" "pt" "ack" "grep")
Resolve #1158
2015-04-14 22:23:57 -04:00
syl20bnr b0559c7f4d Startup buffer release note 2015-04-13 02:17:48 -04:00
syl20bnr dac29ce71c Namespace spacemacs buffer functions with spacemacs-buffer prefix 2015-04-12 00:24:03 -04:00
Carl Lange 4c42247287 Add toggle change log (WIP) 2015-04-11 10:52:05 -04:00
syl20bnr f72088e74b Add variable dotspacemacs-verbose-loading
By default to nil.
Can speedup the loading process.
2015-04-05 23:45:02 -04:00
syl20bnr 57fcb93799 Rename *-declarep functions to *-usedp functions
Makes more sense from a user view point.
2015-04-03 19:13:52 -04:00
syl20bnr f42b686f4c Fix and tweaks for startup lists 2015-04-02 00:12:19 -04:00
Carl Lange d478955481 Startify stuff 2015-04-02 00:03:06 -04:00
syl20bnr ee2aa24bec Integrate dotfile wizard at startup 2015-03-30 23:17:29 -04:00
syl20bnr 2acb2cc45e Wizard like install of dotfile with universal argument 2015-03-30 22:18:32 -04:00
Tu Do c278b58a0b Ask user editing style when creating .spacemacs file 2015-03-30 19:18:36 -04:00
syl20bnr ea4258d5e5 Emacs style leaders are now on `M-m` and `C-M-m`
Leader: `M-m`
Major mode leader: `C-M-m` (alternate to `M-RET` since `C-m` has
the same ASCII code then `RET`).

Resolve #917
2015-03-23 19:09:23 -04:00
syl20bnr 382eca2dbc holy-mode: you know what? Move leaders on M-n and M-m
:-)
2015-03-23 01:37:28 -04:00
syl20bnr 8e7f990d39 holy-mode: move leaders on M-1 (leader) and M-0 (major mode leader) 2015-03-23 01:16:20 -04:00
syl20bnr c35a4ff983 holy-mode: Move leader on C-; and major mode leader on C-' 2015-03-22 23:57:08 -04:00
syl20bnr 7ac6c8a8be First try for an holy-mode 2015-03-19 00:30:29 -04:00
syl20bnr 8918725119 Reset progress bar when C-c C-c in the dotfile 2015-03-16 23:56:16 -04:00
syl20bnr 2c9933b466 Fix mode-line progress bar in the dotfile when pressing C-c C-c 2015-03-13 22:08:30 -04:00
syl20bnr 0052466422 Add official logo to startup page 2015-03-12 23:55:38 -04:00
syl20bnr 7b3a9c62a3 Add dotspacemacs-enable-paste-micro-state (default to t) 2015-03-09 20:57:58 -04:00
syl20bnr a9aa68fff3 Improve robustness of image banner feature
Check for support for PNG image format
Fallback on text banner if the PNG file cannot be displayed or
the path is wrong
2015-03-08 22:09:09 -04:00
syl20bnr f79fa6c49b Auto-save dotfile when C-c C-c 2015-03-07 22:30:28 -05:00
syl20bnr a5d4e9e7fe Add documentation in dotfile template about disabling `,` shortcut
Ref #772
2015-03-07 22:24:42 -05:00
syl20bnr 7c9b6683ba dotspacemacs-mode: import emacs-lisp-mode evil-leader map 2015-03-04 21:38:54 -05:00
syl20bnr 05b5cb4876 dotspacemacs: add `SPC m c c` key binding 2015-03-02 12:13:08 -05:00
syl20bnr 61208803ed dotspacemacs: Fix execution of dotspacemacs/init when C-c C-c 2015-03-02 12:10:39 -05:00
syl20bnr 36723dfda3 dotspacemacs: C-u C-c C-c skip `dotspacemacs/config`
By default `dotspacemacs/config` is executed.
2015-03-02 01:12:34 -05:00
syl20bnr 6f92094797 dotspacemacs: C-c C-c executes `dotspacemacs/init` 2015-03-02 01:12:07 -05:00
syl20bnr acfde2e01d dotspacemacs: C-u C-c C-c executes `dotspacemacs/config` at the end 2015-03-02 00:27:36 -05:00
syl20bnr 9ee798e10c Display a quick help message when opening a dotfile 2015-03-01 23:51:38 -05:00
syl20bnr 293ca1c8bd C-c C-c in `.spacemacs` to resync the packages 2015-03-01 23:02:14 -05:00
syl20bnr 206b1a13ae Refactor init.el and rename core-spacemacs-mode.el to core-spacemacs.el 2015-03-01 22:12:09 -05:00
syl20bnr 687204183a Add dotspacemacs major mode 2015-03-01 12:49:39 -05:00
syl20bnr 8aeb6e24c0 Move dotfile layer and settings declaration in their own functions
layers declaration are now in `dotspacemacs/layers` function
settings are now part of the `dotspacemacs/init` function
2015-02-28 23:33:57 -05:00
syl20bnr 5046d45585 Add variables `dotspacemacs-colorize-cursor-according-to-state`
and `spacemacs-evil-cursor-colors`
2015-02-24 00:41:50 -05:00
hrvladev 40f15e2ab9 Fix outdated comment
I guess the comment of `dotspacemacs/load` is outdated, because the
function only loads `~/.spacemacs` if it exists. If not - nothing
happens. No copying.
2015-02-17 22:24:28 -05:00
Nate Wolfe d07a3c46ed Fix typo "orhpan" -> "orphan" in "dostpacemacs-delete-orphan-packages" 2015-02-17 22:19:57 -05:00
syl20bnr 97bb568360 Add variable `dotspacemacs-loading-progress-bar`
Default is t
2015-02-15 21:25:12 -05:00
syl20bnr 94122defaf Add special value `add support for dotspacemacs-configuration-layers 2015-02-14 22:15:25 -05:00
syl20bnr 6a4c533b44 Add variable `dotspacemacs-delete-orphan-packages` 2015-02-14 22:03:30 -05:00
syl20bnr 570f5e5e05 Move dotspacemacs/config to after-init-hook
Add log in `*Messages*` when executing `init` and `config` dotspacemacs
functions

resolves #588
2015-02-11 17:02:37 -05:00
syl20bnr d9886af28e Minor documentation fix in dotspacemacs template 2015-02-07 20:05:24 -05:00
syl20bnr 38a1dba892 Fix dotspacemacs-helm-micro-state variable name 2015-02-04 23:47:29 -05:00
syl20bnr 5e5ac36bba Add helm micro-state on TAB 2015-02-04 22:35:36 -05:00
syl20bnr 93887ed160 Change powerline-offset for powerline-scale
Better for zoom-in zoom-out
2015-01-27 21:46:37 -05:00
syl20bnr ba86ae7769 Add leuven monokai and zenburn to default dotspacemacs-themes 2015-01-27 21:45:39 -05:00
syl20bnr 16df76c0c8 Prefix all core files with `core-` 2015-01-26 22:51:47 -05:00
Renamed from core/dotspacemacs.el (Browse further)