Commit graph

195 commits

Author SHA1 Message Date
Fabien Dubosson
21cab12125 Add smart closing parenthesis 2016-02-14 23:09:13 -05:00
Muneeb Shaikh
d3ec9a1791 fix paste micro -> paste transient 2016-02-02 16:52:32 +01:00
syl20bnr
065f45f83f Add default value for transient-state dotspacemacs variables 2016-01-31 23:53:52 -05:00
justbur
b149f4e13a transient-state: new dotspacemacs variable to hide titles
dotspacemacs-show-transient-state-title
2016-01-31 23:50:10 -05:00
justbur
c12f6b85c8 transient-state: Add .spacemacs var to hide color guide 2016-01-31 23:48:19 -05:00
tonyday567
36e7e4ef73 Add support for todos and agenda in home buffer 2016-01-31 20:31:09 -05:00
Xue Fuqiao
4958f7fc10 Fix "the point" problems
Point is a proper name when it refers to the current editing location.
Moreover, point designates a place *between* two characters (or before the first
character, or after the last character), rather than a particular character.

References:

* http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00414.html
* https://www.gnu.org/software/emacs/manual/html_node/elisp/Point.html#index-point
2016-01-31 21:48:52 +01:00
syl20bnr
45def1ec60 core: Add support for lazy installed layer.
New function configuration-layer/lazy-install to add support for
lazy installation of layers based on auto-mode-alist emacs mechanism.

This is essentially the Prelude feature but translated at the layer
level for Spacemacs.

New dotspacemacs variable to enable this feature:
dotspacemacs-enable-lazy-installation
For now this variable is set to nil by default, it will be put to t when
the feature is stable.

POC with elixir layer.
2016-01-31 00:10:14 -05:00
Fabien Dubosson
aa39eb3fd0 Add a command for reporting issue to spacemacs 2016-01-26 01:21:02 -05:00
syl20bnr
046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
Chris Barrett
6d7d399cfe Update packages.el template
- Remove extensions template
- Prompt before creating readme (Users creating private layers probably
  don't want to create a readme)
- Template out layer author and email address
- Rename LAYERNAME to LAYER_NAME for readability
- Use fallback attributes if user-full-name is unset
- Fix inconsistent Spacemacs capitalization in template
2016-01-11 19:06:43 -05:00
person808
59319f9e8b Fix typo in dotfile template. 2016-01-11 02:08:51 -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
justbur
32f523e062 spacemacs-helm: New layer
Collect helm configuration from spacemacs and spacemacs-base into one
place. The purpose is to allow choice between this layer and
spacemacs-ivy.
2016-01-09 13:36:03 -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
Michael Simpson
be0722764f Fix typo in .spacemacs.template comment 2016-01-05 00:41:09 -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
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
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
4a5ec73edf core: add --insecure command line parameter
Will set dotspacemacs-elpa-https to nil. Useful to be able to install
spacemacs in an environment where https is an issue.
2015-12-07 23:10:44 -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
394fec28e0 keys: Fix an issue with C-i/tab distinction
Before this <tab> => TAB if there is no binding for <tab>, but then
`spacemacs/translate-C-i` turned this into <C-i>, which we don't want
because that would mean having to always bind <tab> when this option is
enabled. This commit adds a check to make sure we can't possibly be
translating from <tab> originally (we only want to capture the C-i
events in the GUI).

Also, fixes C-m translation but leaves it commented.
2015-12-05 13:17:59 -05:00
syl20bnr
855d8f8f44 core: update docsting in dotfile template 2015-12-04 00:28:36 -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
Eivind Fonn
c893383fe4 Fix some documentation bugs
- CSS links
- GIFS in published version
- Unify layer doc titles
- Change emoji layer emojis to an image
2015-12-03 23:50:29 -05:00
Fabien Dubosson
028c53fbd7 Create the layer README on create-layer
When using `configuration-layer/create-layer`, the `README.org` file is
not created from the template. This change corrects this.

Close #3259
2015-11-24 23:20:45 +01:00
Eivind Fonn
2918ca2b56 Clean up org loading check 2015-11-23 20:15:09 +01:00
Tony Day
3f72bec69a Added check to catch when org has already been loaded. 2015-11-23 20:11:31 +01: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
Eivind Fonn
bfd0782b24 Update layer readme template 2015-11-13 14:50: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
Eivind Fonn
31a768a172 Update layer README template
With respect to the recent documentation changes
2015-11-04 20:05:37 +01: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
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
Fabien Dubosson
f5fb2f654a Correct .spacemacs template's doc and indentation
Change a reference from `spacemacs/config` to the new
`spacemacs/user-config` function. Correct the file indentation.
2015-10-14 00:33:26 -04:00
Eoin Houlihan
1a853d5759 Fix minimize spelling mistake 2015-10-14 00:32:46 -04: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
2cfc9a5a60 dotfile: fix template 2015-09-28 23:41:11 -04:00
syl20bnr
14fd2b48e9 New variable dotspacemacs-remap-Y-to-y$ 2015-09-28 23:09:44 -04:00
Robert O'Connor
2a274767d3 Switch the default distribution to spacemacs
This will cause a lot of confusion for newcomers.
2015-09-19 01:02:51 -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
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
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
syl20bnr
d44b9429dc core: add default value to docstrings in dotfile template 2015-09-07 01:06:29 -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
syl20bnr
c688f29738 core: rename dotspacemacs/config to dotspacemacs/user-config
in template dotfile.
Display a warning when dotspacemacs/config is encountered; support for
dotspacemacs/config will be dropped in 0.105.0
2015-08-31 22:02:43 -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
Christopher McCloud
09de9ba86c adds helm-find-contrib and helm-find-spacemacs.
Set as default unless user has dotspacemacs-use-ido t.
Adds comments to .spacemacs.template informing users of new behavior
tied to dotspacemacs-use-ido.
2015-08-26 21:38:01 -04:00
syl20bnr
6e2bbd2979 Put spell-checking as default in dotfile template 2015-08-13 23:01:44 -04:00
justbur
16cb070acb Add hybrid-mode 2015-08-13 01:37:03 -04:00
person808
640366e9ae Add spacing conventions for writing documentation.
These were briefly discussed in #2124.
2015-07-27 12:11:52 -04:00
syl20bnr
0ad99623a4 Add "any" value for dotspacemacs-highlight-delimiters 2015-07-23 20:41:52 -04:00
nashamri
4c6bc0d81e Make spacemacs-theme the default theme (dark variant)
Remove the spacemacs-theme extension from spacemacs layer
Add spacemacs support to the core
2015-07-04 23:31:52 -04:00
kccai
e961bd04b3 Fix typos. 2015-06-30 23:01:50 -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
person808
293b98a8d0 Update layer-README.template to org. 2015-06-14 21:47:02 -04:00
syl20bnr
cddb83883e Add version-control layer by default to dotfile template 2015-06-10 00:01:31 -04:00
syl20bnr
f87945bc52 Add spacemacs-theme 2015-06-03 00:38:45 -04:00
Keshav Kini
696f2d461a Use weirder-looking templating variables
It's important to make templating variables something unique-looking so
that you don't accidentally write template variables where you don't
mean to.  For example, in extensions.template, "package names go here"
was being replaced with "package <name of package>s go here", etc.
Also Search case-insensitively for good measure
2015-06-02 22:50:51 -04:00
syl20bnr
549b18a97e New dotfile variable dotspacemacs-use-ido 2015-05-31 21:48:16 -04:00
syl20bnr
d26b7f2c52 Disable paste micro-state by default 2015-05-31 17:52:55 -04:00
person808
3a2594e6bc Update layer templates. 2015-05-27 23:07:45 -04:00
syl20bnr
640aad0a82 Cleanup dotfile template 2015-05-27 16:09:56 -04:00
syl20bnr
d681234a71 new layer: shell 2015-05-20 22:40:25 -04:00
syl20bnr
f09251f9c8 Update comments in dotfile template for default layers 2015-05-09 12:04:43 -04:00
syl20bnr
36eca4419b New layer: emacs-lisp 2015-05-07 00:13:13 -04:00
person808
ab6a987d96 Fix typos in .spacemacs template. 2015-04-27 23:29:44 -04:00
syl20bnr
3b1a4e328e Move release notes and quickhelp to core/info directory 2015-04-22 22:30:00 -04:00
MadAnd
6a9225299d Fix typo 2015-04-21 01:50:31 -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
Tu Do
55f1207133 Improve Startup buffer
- Modularize and add quickhelp button
  Split the current hardcoded release note display functions into smaller
  reusable functions. Then reuse it for creating quickhelp button.
- fix: bind widget-button-click to left mouse click
  widget-button-press is for keyboard and binding it to a left mouse
  button is not suitable. The clicks on buttons are often ignored. Use the
  proper widget-button-click.
- Since this is develop, point it to 0.102.x
- Beautify org CHANGELOG
  Setting org-indent-mode hides the leading stars of all Org headers except
  the last one just enough to indicate indentation, which make it easier
  to read. Also, put it in read-only-mode so user don't accidentially mess
  up his reading material.
  Also put the CHANGELOG in view-mode for reading and navigating read-only
  content.
- Add Evil and Emacs tutorial buttons to quickhelp
  So it is even easier for first time users.
  Also refactor spacemacs-buffer//insert-release-note:
  - Change it to spacemacs-buffer//insert-note
  - Just insert content. Widgets are optional
  - Insert different widget from the two functions
    spacemacs-buffer//insert-quickhelp-widget and spacemacs-buffer//insert-release-note-widget
- Put the cursor on the quickhelp button
  So that users can start using it immediately. New users only knows RET
  to press a button and learn the rest there.
- Add m to jump back to top menu
  Also update the quickhelp content.
2015-04-19 02:04:42 -04:00
syl20bnr
ff4a207cb9 Add dotspacemacs-highlight-delimiters to dotfile template 2015-04-19 01:17:38 -04:00
syl20bnr
aabdc1882c Replace defvar with setq for pre and post extensions variables 2015-04-18 23:57:27 -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
5e44e68ed9 Comment default layers in template and add a comment 2015-04-13 02:28:39 -04:00
syl20bnr
9f182c53b9 Add better-defaults layer in dotfile template
resolves #1108
2015-04-11 14:52:42 -04:00
Carl Lange
4c42247287 Add toggle change log (WIP) 2015-04-11 10:52:05 -04:00
syl20bnr
6844ff9fed New layer: org 2015-04-11 00:13:02 -04:00
syl20bnr
a4919b3eda New layer syntax-checking
Move flycheck
2015-04-10 22:23:16 -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
4c905218ce Fix default layer in dotfile template 2015-04-04 23:38:02 -04:00
Carl Lange
fbade22319 add default layers 2015-04-04 23:37:36 -04:00
syl20bnr
f42b686f4c Fix and tweaks for startup lists 2015-04-02 00:12:19 -04:00