Commit graph

1677 commits

Author SHA1 Message Date
Muneeb Shaikh 3f526479e3
[themes] add highly accessible themes - modus-{operandi, vivendi}
Modus themes are highly accessible themes for GNU Emacs, conforming with the
highest accessibility standard for colour contrast between background and
foreground values (WCAG AAA standard).

Screenshots: https://gitlab.com/protesilaos/modus-themes/-/wikis/Screenshots
2020-03-12 21:25:44 +01:00
JAremko 6abe62efb5 [spacebind] generate less code 2020-03-12 22:17:17 +02:00
JAremko 710aa947b7 [spacebind] use cl-every 2020-03-11 10:35:11 +02:00
JAremko 62bbff5567 [spacebind] add tests and docs for overrides 2020-03-11 10:35:11 +02:00
JAremko 2e81c032ef [spacebind] enable nested form fmt 2020-03-11 10:35:11 +02:00
JAremko a18b4d76b2 add :label for atl labels 2020-03-10 20:54:57 +02:00
JAremko 130f00e4f3 make key names more coherent 2020-03-10 20:54:57 +02:00
JAremko 7d177d4e66 Improve spacebind docs 2020-03-10 20:54:57 +02:00
Hong Xu 2c99a99d59
Remove executable permission from core/templates/.spacemacs.template
733a3a8199 accidentally adds executable
permission to core/templates/.spacemacs.template. This commit removes
the executable permission.
2020-03-08 12:27:20 +01:00
JAremko 0753287864 rename spacebind -> spacemacs|spacebind
Also fix stuff.
2020-03-05 12:21:01 +02:00
Muneeb Shaikh bb0a118344
[core-themes] Add support for doom-ephemeral 2020-03-05 00:00:38 +01:00
jaremko b83521edbb Add spacebind macro and tests for it 2020-02-27 21:48:40 -05:00
Maximilian Wolff f44047ccdc
Make interactive installation of python layer not fail
If a layer is interactively installed by visiting a file the progress
file is updated without being properly initialized before causing a
division by zero.

Now `spacemacs/update-progress-bar` will ignore the call if
`spacemacs-loading-dots-chunk-threshold` is <= 0.
2020-02-25 22:14:01 +01:00
Zach Pearson 733a3a8199
Add option to hide version string in Spacemacs buffer. 2020-02-24 12:37:37 +01:00
Maximilian Wolff d10ca8d6d5
Update quelpa.el to latest version 2020-02-24 12:04:19 +01:00
Maximilian Wolff fcb79bf55b
Update page-break-lines.el to latest version 2020-02-24 12:02:18 +01:00
Maximilian Wolff 5735221365
Update package-build.el to latest version on melpa 2020-02-24 11:42:41 +01:00
Maximilian Wolff 5ba8159037
Update mocker.el from v0.3.0 to v0.3.1 2020-02-24 11:20:00 +01:00
Maximilian Wolff 2823f2876e
Update ido-vertical-mode from package version 20160429.1037 to 20180618.2101 2020-02-24 01:34:24 +01:00
Maximilian Wolff 2db7d720bc
Upgrade spacemacs-theme to latest version 2020-02-24 01:17:50 +01:00
Maximilian Wolff 2f70ed83ad
Update ht.el from v2.0 to 2.2 2020-02-24 01:10:48 +01:00
Steven Allen 9176e93497
[dump] Fix several dumper issues
This commit contains the following original ones:
[dump] don't assume spacemacs start directory when dumping
[dump] dump to a temporary file and atomically rename it
[dump] cleanup after dumping
2020-02-18 20:41:43 +01:00
Aaron Jensen 840b431cf6
configuration: fix redundant update checking
Fixes #13114
2020-02-09 19:23:19 +00:00
Muneeb Shaikh 0d7d8ce0ed
[themes][doom] Sync with updated list of doom themes
Added following themes:

* doom-acario-dark
* doom-acario-light
* doom-horizon
* doom-laserwave
* doom-manegarm
* doom-material
* doom-oceanic-next
2020-02-09 19:10:38 +00:00
Ag Ibragimov 7f92a4388d fix: ignore nil values in dotspacemacs-configuration-layers
otherwise it throws warnings when layers introduced imperatively, e.g.:

dotspacemacs-configuration-layers
`(
  ,(when (eq system-type 'darwin) 'osx)
  ,(when (eq system-type 'gnu/linux) 'exwm))
2020-02-05 20:54:13 +01:00
duianto ad521fff5c
Spacemacs buffer in other window with prefix arg 2020-02-01 08:53:46 +00:00
duianto 4b451a5fe3
Fix void destructuring-bind after cl pkg deprecation
destructuring-bind is a macro in the deprecated package: cl

SPC-TAB calls: spacemacs/alternate-buffer
In the spacemacs-base distribution, it shows the message:
spacemacs/alternate-buffer: Symbol’s function definition is void: destructuring-bind

Also renamed three instances of destructuring-bind in the rirc layer.
2020-02-01 08:47:55 +00:00
Ivan Yonchovski 06cb81e90a [themes] Add doom-dark+ 2020-01-23 11:05:45 +01:00
Zach Latta 1d2a1fa6e4 Fix capitalization of GitHub
Change instances of "Github" to "GitHub".
2020-01-20 09:14:12 +01:00
Mpho Jele 08d19389cc Frame title setting doesn't need to depend on environment (gui/cli)
Enables frame titles in gui emacsclient frames.
2019-12-22 16:52:41 +01:00
madand 5dc9e2f271
Fix CI builds by reverting a breaking change to mocker.el
The change was introduced by #13059. mocker.el is a large piece of legacy code
that depends on deprecated functionality in EIEIO and cannot be trivially
converted to use `cl-lib` by search and replace.
2019-12-15 21:41:51 +00:00
kimr da80634370
converted cl to cl-lib 2019-12-14 20:20:51 +00:00
duianto a52fc88b16
Fix SPC-TAB in spacemacs-base distribution
Problem:
The variable spacemacs-layouts-restrict-spc-tab is defined in:
~/.emacs.d/layers/+spacemacs/spacemacs-layouts/config.el
But the spacemacs-layouts layer isn't loaded by default in spacemacs-base.

Solution:
Check if the variable is bound.
2019-12-08 11:12:35 +01:00
duianto 7feed6215d
Prevent Spacemacs buffer redisplay in filetree window 2019-12-06 22:30:08 +01:00
duianto 623ca354fe
Fix home buffer version and banner
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
77161bd591

It was slightly modified in this commit:
core: defer distro insertion in home buffer
cd50d9c069

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
a764eb4eb9

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
627e934453

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer #11901
https://github.com/syl20bnr/spacemacs/pull/11901

If there's a good reason to combine them again,
then the changes can be reverted.
2019-12-03 20:44:22 +00:00
Muneeb Shaikh f3f2db8315 Update the list of solarized themes
Upstream has added a blend of solaized themes with different color palettes.
2019-12-02 18:41:23 +01:00
Maximilian Wolff dd7a5d98be
Revise helm recompile package action and bind recompile-elpa
The newly introduced function to compile an elpa package
was very much redundant with the existing recompile-elpa function.

I have adapted recompile-elpa so that it can be used for the helm action too.

In addition I have bound recompile-elpa to `SPC c C-c` to allow users to
easily recompile their entire elpa directory if the need arises.

I have also removed the error handling in the helm action in favor of
standard error reporting via the *Compile-Log* buffer.
2019-11-24 02:07:15 +01:00
Gia Thanh Vuong 94de754504
[core] [helm] add action to recompile an elpa package
How to use: `SCP h p` select package then `F3` or `C-z` and choose `Recompile`

Motivation: Some packages when compiling need other packages to be loaded first.
The pacakage maintainers should make sure of this requirement but sommetimes
they don't. It also doesn't help when Spacemacs is lazy loading and compiles
updated pacakges on startup. So the manual fix for this problem is recompile the
package once Spacemacs has fully loaded. This requires user go to the package
install location to delete elc files and then do a `spacemacs/recompile-elpa`.
This commit will do that chore for them.

This will make fixing the problem with `org-plus-contrib` or `dumb-jump` update
every now and then easier.
2019-11-23 23:40:50 +01:00
Miciah Masters a55df96caa [core] Environment variable caching fixes
Fix several problems with environment variable caching.

First, if a shell printed extra output besides the command output,
spacemacs//init-spacemacs-env included the extra output in .spacemacs.env.
For example, a login shell could print a motd, which would be erroneously
included in .spacemacs.env.  To avoid this, spacemacs//init-spacemacs-env
now redirects the command output to a temporary file and then reads the
file.

Second, spacemacs//init-spacemacs-env sorted lines using the entire
"name=value" string for each line whereas the correct behavior is to sort
only on the "name" part.  To fix this, spacemacs//init-spacemacs-env now
uses sort-regexp-fields with an appropriate regexp to match the "name" part
and ignore the "value" part.

Third, although load-env-vars-set-env added all PATH settings in
.spacemacs.env to exec-path, it set PATH to the first PATH setting in
.spacemacs.env.  Now load-env-vars-set-env sets PATH from exec-path so that
it will reflect that combined value.

Fourth, load-env-vars-set-env set exec-path and PATH without consideration
to the operating system's directory separator.  Now load-env-vars-set-env
converts backslashes to forward slashes when adding path entries to
exec-path and converts forward slashes to backslashes when setting PATH on
platforms that use backslashes.

Fifth, load-env-vars-set-env now normalizes exec-path by deleting trailing
slashes from path entries, converting drive letters in path entries to
lower-case, and deleting duplicate path entries.

Sixth, Spacemacs no longer uses exec-path-from-shell, but a changelog entry
said that it did.  This commit corrects the changelog entry, deletes
another outdated entry, and merges two entries that covered the same
functionality.

Finally, this commit corrects several typos and tries to improve wording in
several docstrings, messages, and comments.

* CHANGELOG.develop: Delete mention of exec-path-from-shell, which
Spacemacs no longer uses by default.  Delete mention of
dotspacemacs-import-env-vars-from-shell and
dotspacemacs-import-env-vars-shell-file-name, which no longer exist.
Merge entries about synchronizing environment variables.
* core/core-env.el (spacemacs-ignored-environment-variables): Fix typos and
mention that the strings are regexps that are matched against the names of
environment variables.
(spacemacs//init-spacemacs-env): Use a temporary file rather than standard
output in order to avoid getting motd and other noise.  Sort lines using
only environment variables' names, not their values.  Better describe the
behavior with respect to spacemacs-ignored-environment-variables, duplicate
settings, and PATH.  Try to make wording clearer.
(spacemacs/edit-env): Fix typos in the docstring.
* core/libs/load-env-vars.el (load-env-vars-set-env): Fix typos in the
docstring.  Delete trailing slashes from path entries in exec-path, convert
drive letters to lower-case, delete duplicate path entries, and convert
backslashes to forward slashes when setting exec-path.  Set PATH from
exec-path, converting forward slashes to backslashes on platforms that use
backslashes.
2019-11-03 22:25:05 +01:00
smile13241324 5fdb89d61d Optimise spacemacs/last-error further
Noticed that I have used if instead of when
and added an obsolete progn.
2019-11-03 20:35:49 +01:00
smile13241324 e74fc70de8 Revise spacemacs/last-error function and change key binding 2019-11-03 20:14:10 +01:00
Benoit Coste 93ac5203b4 Add function 'spacemacs/last-error
Sometimes it is useful to go directly to the last error message in the buffer.
This function recursively calls 'spacemacs/next-error until the last error is
reached.
The binding "SPC e l" is associated with it
2019-11-03 20:14:10 +01:00
Miciah Masters 552fd5953c Update references to macOS
Apple renamed "Mac OS X" to "OS X" in 2012 and then to "macOS" in 2016.
Update references to use the current name.
2019-10-13 12:04:40 +02:00
syl20bnr 584392bd92 [core] Fix layer dependencies based on layer variables
There was a edge case with the declaration of the `lsp` layer in `layers.el`
files.
The `hy` layer depends on the `python` layer which in turn depends on the `lsp`
layer if and only if the `python-backend` layer variable is set to `lsp`.
When the `hy` layer was declared first then it declares the `python` layer
without its layer variables, thus the `lsp` layer was not declared because the
`python-backend` variable was not set.

The fix is to gather all the layer dependencies and resolve them only after all
the used layers have been declared.

* new function `configuration-layer/declare-layer-dependencies`
* replace all calls to `configuration-layer/declare-layer` by the new function
  except for distribution layers (we declare layer dependencies right away in
  distribution layers)
2019-09-30 02:00:48 -04:00
syl20bnr c2443ef7d0 [core] Add lsp layer to .spacemacs template 2019-09-30 00:50:01 -04:00
syl20bnr 42cc5f25f3 [core] Better work-around for GnuTLS bug with emacs 26.1 and 26.2
Use the variable libgnutls-version.
Thanks to CJex.
2019-09-14 22:15:53 -04:00
smile13241324 48ffd37594 Revert "[themes-megapack] Add ewal-spacemacs-themes to themes-megapack layer."
This reverts commit 883cf97308.
2019-08-26 19:58:34 +02:00
syl20bnr cfb12e9bd5 [core] Improve spacelpa archive verification
* modified function configuration-layer//stable-elpa-verify-archive

Add a `fatal-err` variable to handle critical erros that prevent the
verification to be attempted.
Use the function `epg-verify-file` instead of `epg-verify-string` which seems
to give more reliable results.
2019-08-24 22:50:39 -04:00
syl20bnr 512a1e3b0c [core] Fix some typos in stable ELPA verification prompts 2019-08-23 13:16:39 -04:00
syl20bnr efb2e3b96f [core] Update spacemacs GPG public key 2019-08-23 12:39:22 -04:00
syl20bnr c975fc64ca [core] Improve spacelpa verification and error detection
* modified function configuration-layer//stable-elpa-verify-archive

Gather errors along the verification steps and make a single call to
configuration-layer//stable-elpa-ask-to-continue at the end of the function.

Improve the scope of catched errors so now the users should be prompted when
GPG is not available on the system.
2019-08-23 12:12:51 -04:00
syl20bnr f21abcdcf3 [core] Rewrite of the stable ELPA initialization code
* new function configuration-layer//stable-elpa-disable-repository
* new function configuration-layer//stable-elpa-update-version-file
* new function configuration-layer//stable-elpa-delete-temporary-files
* new function configuration-layer//stable-elpa-ask-to-continue
* new function configuration-layer//stable-elpa-verify-archive
* new function configuration-layer//stable-elpa-disable-repository
* rename function configuration-layer/stable-elpa-download-tarball to
                  configuration-layer//stable-elpa-download-tarball
* new function configuration-layer/stable-elpa-init
* make the function configuration-layer/stable-elpa-version interactive

configuration-layer/stable-elpa-init is called from init.el.
This function then calls the other new function in more clear fashion than the
previous complicated configuration-layer/stable-elpa-download-tarball

The users are now prompt if they want to install the stable ELPA repository when
the verification of the archive failed.
2019-08-23 00:51:21 -04:00
syl20bnr 81d08a6b35 [core] Make spacelpa archive sign verification the default 2019-08-22 15:46:56 -04:00
syl20bnr 427c01c27a [core] Offline work-around for GnuTLS Emacs bug
This assumes that gnutls-cli is available on the system. The work-around won't
be applied if this executable is not available.
2019-08-22 15:11:01 -04:00
syl20bnr 8e469cb391 [core] Remove outdated comment in .spacemacs.template 2019-08-22 13:21:30 -04:00
syl20bnr b12bc7c857 [core] Avoid graphical glitches with empty modeline
It is important that the stable elpa download message in the modeline is always
visible to the user as the donwload can take a while depending on the connection
speed.
2019-08-21 23:30:55 -04:00
syl20bnr 4a8a8b04af [core] Remove unecessary check for gzip executable on Windows
Turns out we don't use it at all. Also tar.exe is part of the standard
MS Windows 10 distribution, it is installed in system32 directory.
2019-08-21 22:44:32 -04:00
syl20bnr b800694d32 [core] Add function for generic error about not found executable
* new function configuration-layer//executable-not-found-error
* use new function for tar and gzip not found errors
2019-08-21 22:30:24 -04:00
syl20bnr e1e972ec7c core: add startup message for GnuTLS work-around 2019-08-21 19:58:09 -04:00
syl20bnr cfc1057af0 core: fix spacelpa support
* new variable configuration-layer-stable-elpa-archive
* add missing sub-directory "packages"
* update .lock file with above changes and bump to archive version 0.400
2019-08-21 19:53:58 -04:00
Dominic Pearson 5d01efbb6d doom-themes: correct theme entries.
Add/remove missing themes from core/core-themes-support.el.
2019-08-21 16:14:50 +02:00
syl20bnr 9fc43ee9cd Remove commented code from previous commit. 2019-08-20 22:47:53 -04:00
syl20bnr 1541f7f515 Make TLS error hack to work offline 2019-08-20 22:34:54 -04:00
syl20bnr 25f639e403 Better hack to prevent TLS issues with Emacs 26.1 and 26.2
Make a test request to check if the bug happens.
If the bug happens then set gnutls-algorithm-priority to a working value.
2019-08-20 15:32:47 -04:00
syl20bnr d19d91f173 Fix Package undo-tree is unavailable
Backport bug fix from 26.3
Fixes #12633
2019-08-19 14:25:22 -04:00
duianto ae51fd7a77 Revert "Improve theme handling to support themes using spacemacs-theme custom api"
This reverts commit 5f308b0306.

This message is shown on startup:
spacemacs/startup-hook: Symbol’s value as variable is void: spacemacs-theme-custom-colors
and it broke several things.
2019-08-17 11:07:48 +02:00
smile13241324 5f308b0306 Improve theme handling to support themes using spacemacs-theme custom api 2019-08-16 23:05:42 +02:00
Uros Perisic 883cf97308 [themes-megapack] Add ewal-spacemacs-themes to themes-megapack layer.
Currently, the theme also modifies `spacemacs-dark` if also loaded in
`dotspacemacs-themes`. A
[fix](https://github.com/nashamri/spacemacs-theme/pull/144) for this is on it's
way upstream to `spacemacs-theme`, but the maintainer already gave their
[blessing](https://github.com/nashamri/spacemacs-theme/issues/139).
2019-08-14 22:33:25 +02:00
Thanh Vuong 0e9866efce spacemacs-layout layer: limit commmands to work within layouts
Add options to restrict some functions to current layout's buffers

Thanks smile13241324 and duianto for suggestions and fixing typos
2019-08-12 21:41:12 +02:00
duianto fba9447cfe Add toggle key docs to docstring and which-key mouseover
Added spacemacs|add-toggle key binding documentation strings:
- To the toggle keys function docstring
- And to it's which-key mouseover minibuffer text
2019-08-06 23:38:53 +02:00
duianto 0d4803b1ea Fix formatting core/core-dotspacemacs.el
Fixed:
docstring indentation
limited lines to 80 chars
missing newline warnings
etc.
2019-08-06 17:59:06 +02:00
yqu212 53a0dd85bf Remove dotspacemacs-verbose-loading from .spacemacs.template 2019-08-05 19:10:48 +02:00
smile13241324 85fca8f323 Restore winner-mode auto start without breaking dumping
As winner-mode was moved from init.el to dump-init.el winner-mode
was not longer properly started for non-dumped emacs sessions.
Having winner-mode auto activate at startup did fix the issue
for non-dumping users but in turn broke the dumping process.

I have now moved the necessary winner-mode init to
spacemacs/setup-startup-hook which is only called
in the non-dumping case. To allow customizations I activate
winner-mode prior to loading user-init this will allow users
to deactivate winner-mode in the dotfile and fix ediff themselves
if this is wished for.
2019-08-04 14:49:10 +02:00
smile13241324 421feed1f8 Update spacemacs-theme to remove conflicts with newer themes 2019-08-02 20:20:53 +02:00
nshadov 0e0319968d Remove Unicode triple dot in favor of ASCII one
Remove Unicode triple dot in favor of ASCII one because it breaks
initialization with message:
"*temp file*" default encoding cannot encode
2019-07-30 17:25:42 +02:00
syl20bnr e074784237 Fix regular loading of Emacs (i.e. without a dump file) 2019-07-26 23:20:18 -04:00
syl20bnr b7266b38b5 [dump] Add functions to save and restore load-path 2019-07-26 23:00:47 -04:00
syl20bnr 244ae42d6a [dump] Add new macro to delay execution after dump is loaded
New macro spacemacs|unless-dumping-and-eval-after-loaded-dump
2019-07-26 22:45:12 -04:00
syl20bnr 0c39f63c66 [dump] Move some code to dump-init.el 2019-07-26 22:44:11 -04:00
syl20bnr f51fc8e13b [core] Add pre-dump for layers and function spacemacs/dump-modes 2019-07-26 16:32:27 -04:00
syl20bnr cfd2b110f2 Update documentation and parameters for the portable dumper 2019-07-26 15:36:08 -04:00
duianto 3757ad131c Revert "colorized files and folders in spacemacs buffer lists"
This reverts commit bbb9d3d559.

Reason:
It causes issues on the spacemacs-base distribution.
2019-07-22 00:08:58 +02:00
BadDecisionsAlex bbb9d3d559 colorized files and folders in spacemacs buffer lists 2019-07-21 01:10:08 +02:00
kenranunderscore a69323fb3c Update list of base16 themes 2019-07-18 14:57:51 +02:00
Aaron Zeng cc4ab653c2 Update core-dotspacemacs.el default font size
0ffdb353f9 changed the default config template to use a point size instead of a pixel size.  Change the defvar declaration as well.

Commit modified by duianto:
Updated font size in doc/documentation.org
2019-07-18 11:43:45 +02:00
Fangrui Song c825035e48 core: add reference handler as per jump handler 2019-07-15 12:28:04 +02:00
duianto 0ffdb353f9 Change default font size from 13 to 10.0
13 and 10.0 are visually the same, because:
- Integer specifies the pixel size.
- Floating-point specifies the point size.

Using a default floating-point size has two benefits:
- It's clear that the font size can be changed by floating-point values.
- There won't be an unpleasant surprise that `13` and `13.0` are different
  sizes. For example to make the font slightly larger or smaller than `13`.
  Then `10.0` has to be found first by trial and error.
2019-07-14 21:53:27 +02:00
Miciah Masters ab893e3af0 Restore point in spacemacs/alternate-buffer
* core/core-funcs.el (spacemacs/alternate-buffer): Instead of using
switch-to-buffer, use set-window-buffer-start-and-point, specifying the
previous window start position and point if known.  Replace use of
cl-find-if with cl-find.
* CHANGELOG.develop: Add entry for change to spacemacs/alternate-buffer.
2019-07-01 12:56:31 +02:00
duianto cce5668adb Remove mentions of removed powerline-scale property
Remove mention of powerline-scale property from the
.spacemacs.template font variable comment.

Update the changelog.develop entry for the mode line
separator scale when the utf-8 separator is used.
2019-06-27 22:48:37 +02:00
jcaw d4cca74854 Add support for visual line numbers
Emacs 26 added built-in support for line numbers, relative line numbers, and
visual line numbers. Spacemacs supports only absolute and relative, but there is
no way to access the visual mode. It's hard to get around this, since Spacemacs
abstracts line numbers to a reasonably high degree.

Arguably, `visual` is much more useful than `relative` as a display type. Visual
line numbers are like relative line numbers, but only lines that are actually
showing are counted. This means:

  1. Hidden lines are not counted. If a large amount of text is folded, the line
     numbers won't jump from "10" to "546". This is particularly useful in
     buffers like `magit-status`, where a large amount of information is folded
     by default.

  2. Lines that are wrapped are counted as multiple lines, since they're being
     displayed as multiple lines in the editor. Each visual line will be
     numbered - unlike `relative`, where the entire thing is numbered... Once.

With standard relative line numbers, you can't actually navigate using the line
numbers in the sidebar as soon as folded or wrapped lines are introduced. Since
this is one of the main use cases for relative line numbers, this is a big
problem.

Visual mode fixes that problem. Every line that's being displayed is labelled.
Numbers always correspond to the actual number of lines you'd need to navigate
to reach that line.

This commit extends Spacemacs' line number interface to provide visual line
number support.
2019-06-23 19:16:44 +02:00
Juha Jeronen 672e3db625 Customizable major-mode for new empty buffers
New var: dotspacemacs-new-empty-buffer-major-mode

Set to a symbol naming a mode (e.g. 'text-mode) to apply that major mode to any
buffers newly created in Spacemacs by spacemacs/new-empty-buffer.

Fixes #12382.
2019-06-17 08:26:56 +02:00
sergeiz2 365c92bae5 Add force option to spacemacs//init-spacemacs-env call 2019-06-13 18:42:15 +02:00
Ag Ibragimov cf796a4224 spacemacs/recompile-elpa with argument deletes all existing *.elc files
Rationale: very often users required to find and delete all *.elc files
manually. That's a bit tedious.
2019-06-12 20:15:51 +02:00
Thanh Vuong 02bf928815 [core] fix spacemacs/error-delegate
determine flycheck or emacs error backend using next-error-function instead of
next-error-find-buffer
2019-06-09 17:21:04 +02:00
Vitor Finotti ac17032009 Add inverted Dogemacs banner for dark themes 2019-06-02 21:42:32 +02:00
Alexander Miller 8125be79e4 Workaround for buffer-list-update-hook performance issue.
The call to `format-spec` at the end of `spacemacs/title-prepare` creates
a temporary buffer which invokes `buffer-list-update-hook`. This in turn is
caught by treemacs' follow-mode and can lead to an action that requires a
recalculation of the frame-title, which again creates a new temp-buffer, and
so on.

The result is that in some situations Emacs will put full load on a CPU
core while it is idle (though the UI does remain responsive). The disabling
of the hook for the calculation of the frame title prevents this feedback
loop from forming.

See also https://debbugs.gnu.org/db/34/34765.html

Fixes #12387
2019-06-01 14:18:20 +02:00
bb2020 af1ddfd7bd Add dotspacemacs-undecorated-at-startup template variable 2019-06-01 00:01:20 +02:00
ogdenwebb 9bc5679d89 Add more Kaolin themes to spacemacs-theme-name-to-package. 2019-05-29 20:05:08 +02:00
JAremko 30a7b59aa6 Elaborate on README.org tags 2019-05-20 15:25:00 +03:00
JAremko 1554873414 fix links 2019-05-18 13:25:44 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
Miciah Masters 19e4c49126 Fix sort in insert-lazy-install-configuration
Commit 1c4f685b13 replaced
configuration-layer--layers (a list of cfgl-layer objects) with
configuration-layer--used-layers (a list of symbols).  It also changed the
configuration-layer/insert-lazy-install-configuration function to use the
new variable, but it did not change the sort predicate.  Consequently, the
function started failing:

    Wrong type argument: listp, spacemacs-purpose

In addition, because sort is destructive, the function also deleted values
from configuration-layer--used-layers.

This commit fixes the sort predicate so that the function returns the
correct value, and it copies the list before sorting to avoid modifying
configuration-layer--used-layers.

* core/core-configuration-layer.el
(configuration-layer/insert-lazy-install-configuration): Use string<
as the sort predicate, and give sort a copy of the list.
2019-04-26 21:41:39 +02:00
Robert Zaremba 4add7d478d Add emacs banner
To use it put this line in your dotspacemacs/init:
dotspacemacs-startup-banner 100
2019-04-24 22:11:41 +02:00
Florian Bruhin cca6c0549b core: Fix typo in error message 2019-04-24 19:41:24 +02:00
Parker Johnson 0b7d350af9 add startup support for doom-sourcerer theme 2019-04-23 23:13:44 +02:00
JAremko 23842fa77e Simplify descriptions of layers 2019-04-21 22:09:34 +03:00
JAremko 216ebd32b9 Mention tags in README.org template 2019-04-21 22:09:34 +03:00
Henry Hirsch fba6d38bf3 Improve wording of excluded-packages documentation 2019-04-21 13:04:03 +02:00
duianto a76dc11a5b Uncouple version from banner in spacemacs buffer
The line in the Spacemacs home buffer that shows the Spacemacs version, Emacs
version and the Spacemacs distribution, for example: "0.300.0@26.1 (spacemacs)"
were tied to the banner. The line disappeared when the banner was hidden.
2019-04-20 23:53:25 +02:00
duianto 579e2f3017 Sort configuration layers in .spacemacs.template 2019-04-20 22:57:42 +02:00
timor ec5b1f2ad0 core/core-spacemacs-buffer: move up macro definition 2019-04-04 10:48:51 +02:00
bmag 5eff620e83 custom setting: don't write to dotfile before loading all of them
Fixes a bug where saving a custom variable (e.g. package-selected-packages)
before reading the custom settings from dotspacemacs/emacs-custom-settings could
overwrite the stored settings.
2019-02-18 14:21:06 -05:00
syl20bnr 474f945709 defaults: add SPC T N key binding to cycle theme backward 2019-02-10 10:10:51 -05:00
Codruț Constantin Gușoi a2bda16823 Use external tar program for extracting archive 2019-02-01 00:57:46 +02:00
duianto a87300e9c0 Fit Spacemacs home buffer version in terminal 2019-01-29 00:26:21 +02:00
Dieter Komendera b1a958a54c Update quelpa.el to 2c17c4f9 2019-01-20 15:59:04 +02:00
nashamri 5d5a8a5588 Latest theme updates
Summary:

- Update diff and ediff colors (thanks @duianto).
- Support hl-todo mode.
2019-01-20 15:57:28 +02:00
Alexander Miller e7d13da61d Make treemacs the default file browser. 2019-01-20 14:31:36 +02:00
JAremko c7f139e2dc Fiddle with layers.org TOC generation. 2019-01-13 21:48:43 +02:00
JAremko b6949a329e Fix typo 2019-01-13 20:35:45 +02:00
JAremko 19502ec517 Update layers.org generation 2019-01-13 20:27:35 +02:00
RockyRoad cc1764b2ad Recompiling Elpa: don't skip missing .elc files 2018-12-04 21:57:31 -05:00
bmag 745e868b07 update spacemacs theme
Update spacemacs theme to commit c162ad13 upstream.

c162ad13e4
2018-11-09 20:20:26 +02:00
bmag 642b811882 core: update Quelpa to last version 2018-11-09 20:18:47 +02:00
Dieter Komendera 410b23150e
Make query-replace work when frame is split
This works around an issue in Emacs which args-out-or-range errors when
trying to query-replace in frames which are split vertically or horizontally.

See https://github.com/syl20bnr/spacemacs/issues/9700 and
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31586
2018-11-04 19:01:16 +02:00
Codruț Constantin Gușoi 5c6057226e Encapsulates multiple cursors functionality in a layer 2018-10-27 14:33:42 +03:00
deb0ch afd3c8c127 alternate-buffer without purpose 2018-10-27 12:54:02 +03:00
Kevin Ji e98c1b5113
core: Remove space before question mark 2018-10-18 20:02:24 +03:00
Dieter Komendera 2d7737cd3e
Cache expensive computations in spacemacs/title-prepare 2018-10-13 19:23:38 +03:00
MadAnd 2e50f8c6fc
Optimize spacemacs/title-prepare
spacemacs/title-prepare is being called on every frame re-display, so
eager evaluation of values for every possible format specifier can be too
expensive. For example projectile-project-name is very slow in TRAMP buffers.
2018-10-10 08:05:14 +03:00
et2010 02f573df7f core: fix init test (#11278)
When doom-modeline is used, the init test will fail. This should fix it.
2018-09-10 22:34:42 +01:00
syl20bnr e641e6c6e6 Add doom-emacs mode-line theme
Set dotspacemacs-mode-line-theme to 'doom to enjoy this great minimalistic
mode-line.
2018-09-04 14:53:39 -04:00
MarcoIeni 21c3a87044 Spacemacs documentation improvements
`SPC f e f` key binding is no more present, so moved that table entry to
`SPC h f` in DOCUMENTATION.org.

corrected description of paste transient-state behavior.
2018-08-18 12:22:23 +01:00
André Peric Tavares 775d584665 Merge file variables in a single line 2018-08-09 22:53:11 +01:00
André Peric Tavares e329582f54 Use lexical binding in dotfile template
Lexical binding is easier to reason about and it's generally recommended for new code. It's faster too.

Dynamic scoping can lead to tricky situations. Example: https://emacs.stackexchange.com/questions/10394/scope-in-lambda

This probably won't break existing code. Most people don't even know the default is dynamic binding.
2018-08-09 22:53:11 +01:00
John Eismeier 5e3c96562a Propose a couple of spelling corrections 2018-08-02 00:20:06 +03:00
sorawee 616ca1443d Fix a typo (overwite -> overwrite) 2018-07-24 00:27:15 +03:00
Compro-Prasad 9662279838 Fix overflow of line in page-break-lines-mode when using line number
This is picked up from

fd3b7e38ad/page-break-lines.el
2018-07-24 00:11:39 +03:00
DonHugo69 e2b2266028 update doom-themes
* doom-challenger-deep
* doom-opera
* doom-opera-light
* doom-solarized-light
2018-07-10 00:12:11 +03:00
syl20bnr 7c9f612c4f core: try to fetch all env vars by calling the shell multiple times
Since bash will source different files depending on its mode, for instance
login vs. non-login shells, we fetch the env vars from both a login shell and
an interactive non-login shell. We try to cleanup the resulting file by removing
duplicates, sorting env vars etc...
2018-07-05 01:43:14 -04:00
Paolo G. Giarrusso f4506aa445 Extract env. vars from *login* shell
Bash needs the `-l` flag, as pointed out in 6220ace290 (r29480946) and https://github.com/syl20bnr/spacemacs/issues/10906#issuecomment-402184237.
2018-07-05 00:04:52 -04:00
syl20bnr a861177c4a core: fix potential undefined function error with transient hooks
Fixes #10930
2018-07-04 15:38:15 -04:00
syl20bnr ba2f692366 core: add GPG_AGENT_INFO and SSH_AGENT_PID to ignored env vars 2018-07-04 03:44:15 -04:00
syl20bnr d5f5b5ab7e core: fix parsing of env vars with empty value 2018-07-04 03:42:28 -04:00
syl20bnr 21551b6995 core: fix parsing of env vars
Was working on Windows but not macOS.. weird
2018-07-04 03:08:52 -04:00
syl20bnr ee5166949d core-env: add support for Windows
Fix fetching of env. vars on Microsoft Windows (tested with Windows 10 only)
2018-07-04 02:34:54 -04:00
syl20bnr d0401f8640 core: allow spaces in env vars values as well as empty values 2018-07-04 02:34:10 -04:00
et2010 e33638d920 Fix typo 2018-07-03 10:31:05 -04:00
syl20bnr a013d86874 core: update environment variables management
* add new dotfile function `dotspacemacs/user-env`
* add ignored env. vars with variable spacemacs-ignored-environment-variables
* ignore env vars: SSH_AUTH_SOCK and DBUS_SESSION_BUS_ADDRESS
* update documentation in DOCUMENTATION.org
* update .spacemacs.template with new function
* rename environment file from spacemacs.env to .spacemacs.env
* move location of .spacemacs.env file to home or dotdirectory
* add a header to the generated .spacemacs.env file to explain what it is
* make SPC f e e fallbacks to the function dotspacemacs/user-env if the user
  manages the env var by themselves
* make SPC f e E call the new function dotspacemacs/user-env
* sort environment variables in .spacemacs.env file
2018-07-03 01:25:28 -04:00
syl20bnr 6220ace290 core: rework environment variables and PATH management
See updated DOCUMENTATION.org and FAQ.org for more info.

* add core-env.el
* add library load-env-vars.el
* add bootstrap package dotenv-mode.el
* remove spacemacs-environment from bootstrap layer
* remove dotspacemacs variable dotspacemacs-import-env-vars-from-shell
* remove dotspacemacs variable dotspacemacs-improt-env-vars-shell-file-name
* add new key binding SPC f e e to open spacemacs.env file
* add new key binding SPC f e E to reload environment variable from env file
* add new key binding SPC f e C-e to re-initialize the env file from shell.
2018-06-25 02:55:28 -04:00