Commit graph

1450 commits

Author SHA1 Message Date
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
syl20bnr
f1f8db002a core: display time spent in user-config in home buffer 2018-06-16 15:21:58 -04:00
syl20bnr
d3c594512d core: don't call user-load unless we are dumping 2018-06-16 14:46:17 -04:00
syl20bnr
b8e0fdd4a5 core: fix pdumper enabled on SPC f e R no matter what 2018-06-16 11:05:05 -04:00
syl20bnr
034cb2bd66 Always import environment variables on linux
Seems that some people does not get their PATH right on Linux. Add back the
import for all Linux distro.
2018-06-16 03:38:16 -04:00
syl20bnr
d28990537f Add new variable dotspacemacs-import-env-vars-shell-file-name
Used to fetch the environment variables. This allows to keep shell-file-name
untouched.
2018-06-15 02:40:44 -04:00
syl20bnr
9ee832955a core: async import of env.vars and add new dotfile variable
* new variable dotspacemacs-import-env-vars-from-shell
 * asynchronous import of environments variables
 * move loadenv function to funcs.el
 * update documentation
2018-06-15 01:38:07 -04:00
syl20bnr
d19a20beb4 Load window-purpose when window configuration changes 2018-06-14 02:07:02 -04:00
syl20bnr
de858b2953 Fix startup buffers without spaceline mode line 2018-06-14 01:10:44 -04:00
syl20bnr
18d397a98a Add dotspacemacs-server-socket-dir to dotfile template 2018-06-14 00:43:49 -04:00
Carl Lange
d92da11bcd Allow setting of server-socket-dir in .spacemacs 2018-06-14 00:42:13 -04:00
Benjamin Reynolds
594fdc8f05 Rename spacemacs/mplist-get functions to be more descriptive
* spacemacs/mplist-get -> spacemacs/mplist-get-values
* spacemacs/plist-get -> spacemacs/mplist-get-value
* refactor spacemacs/mplist-get-value to be defined in terms of mplist-get-values

Ref #10803 See [comment]

[comment]: https://github.com/syl20bnr/spacemacs/pull/10803#issuecomment-395292606
2018-06-14 00:15:49 -04:00
syl20bnr
0ce597e205 core: improve docstring for dotspacemacs-mode-line-unicode-symbols 2018-06-11 12:45:28 -04:00
syl20bnr
6a51d557da Also defer helm loading on idle 2018-06-11 01:34:08 -04:00
syl20bnr
bd316f4c30 core: add new macro spacemacs|add-transient-hook
Transient hooks vanishes when they are evaluated.
2018-06-11 01:30:18 -04:00
syl20bnr
86b4e6f76b core: move point before [ S P A C E M A C S ] at startup
Avoid having multiple "Open quick help..." in the minibuffer at startup.
2018-06-10 03:05:35 -04:00
syl20bnr
ac247396f3 core: avoid unecessary output in message buffer at startup
Unless in debug mode.
2018-06-10 02:49:51 -04:00
syl20bnr
c2211b32e3 core: new function configuration-layer/load-file 2018-06-10 02:46:16 -04:00
syl20bnr
39bf9e516c core: fix warning about quoted lambda in core-configuration-layer.el 2018-06-10 02:45:34 -04:00
syl20bnr
a0a3ff0c20 core: refactor the progress bar
Spacemacs is slow to startup so better give it a not buggy progress bar :-)

* Move progress bar code to core-progress-bar.el file
* Remove the counters at the end of the progress bar
* Fix update of the progress bar value
* Fix progress bar size when staring Emacs maximized
2018-06-10 02:32:29 -04:00
James Wang
f393ca2ef7 Fix editing style test 2018-06-09 00:05:28 -04:00
syl20bnr
3a2740f7e6 Remove dotspacemacs-helm-xxxx variables from templates
Seems we forgot to remove it when they have been moved to the helm layer.
2018-06-08 02:24:38 -04:00
syl20bnr
b282e553ba Use dotspacemacs backward compatibility macro instead of aliases 2018-06-08 02:24:38 -04:00
syl20bnr
9539e4206d Rename Vim style related variable to vim-style-xxxxx
Update the documentation
Define alias for backward compatibility
2018-06-08 02:24:38 -04:00
Benjamin Reynolds
6c7e9f9a73 Fix typo in spacemacs/plist-get docstring (#10803) 2018-06-07 00:55:37 -04:00
Miciah Masters
e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
Nasser Alshammari
8da66b5e37 Latest updates of spacemacs-theme (#10810) 2018-06-05 16:47:24 -04:00
syl20bnr
2df4db5c60 core: new function spacemacs/plist-get
Made to play well with modified plist. Replace spacemacs/mplist-get by
spacemacs/plist-get in spacemacs|add-company-backends
2018-06-04 01:19:44 -04:00