Commit Graph

1888 Commits

Author SHA1 Message Date
Lucius Hu db15a2d5a0
core-jump: fixed a typo
For example, in `rust-mode`, `(spacemacs//get-jump-handlers)` returns
`((lsp-ui-peek-find-definitions :async t) evil-goto-definition)`.

So `-handler` is bound to the first one, i.e. `(lsp-ui-peek-find-definitions :async t)`.
We need to figure out whether it's asynchronous by checking the `:async` keyword argument.

But before this commit, we wrongly checks the second handler in the handlers list.
Even when multiple handlers do exist and they are all async, the typo made it sub-optimal since it uses not the best handler.

This commit fixes that.
2022-02-15 01:24:16 +00:00
SpacemacsBot 8863a34b56
[bot] built_in_updates (#15336)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-02-12 04:16:55 +00:00
Lucius Hu efdfecbf8f
spacemacs-buffer: allow 'kp-*' keys for jump to number (#15308) 2022-02-10 08:39:31 +00:00
Lucius Hu a50aa7d225
spacemacs-buffer: lock it in read-only
This commit locks the spacemacs home buffer in read-only mode.

Before this, users may use `SPC b w` to toggle it to writable but
this buffer really should not be modified by users.

Note that, when we need to modify the home buffer in LISP program,
we can always set `inihibit-read-only` to nil. Thus this commit
won't disallow us to update the home buffer when it's needed.
2022-02-09 17:50:57 -05:00
Lucius Hu cd9d8c5b24
fixup! core-spacemacs-buffer: remoe org (agenda) files from recent files (#15307) 2022-02-03 18:18:44 -05:00
Codruț Constantin Gușoi 3cff14b086
Warn about pdumper not working together with Native Compilation (#14730)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-03 19:36:00 +00:00
Lucius Hu 5ad5c6ef83
core-spacemacs-buffer: remoe org (agenda) files from recent files (#15307) 2022-02-03 19:29:05 +00:00
SpacemacsBot 6d42d05bda
[bot] "built_in_updates" Mon Jan 31 04:15:41 UTC 2022 (#15301) 2022-01-30 23:17:18 -05:00
Lucius Hu 42dc30e33c
core-spacemacs: fix daemon font size (#15295)
Co-authored-by: "ruquan.chen" <ccruquan@gmail.com>
2022-01-29 03:18:22 +00:00
SpacemacsBot 4743c01fa9
[bot] "built_in_updates" Sat Jan 29 01:35:00 UTC 2022 (#15292) 2022-01-28 20:45:58 -05:00
Lucius Hu 719b64377f
fix evil-lisp-state prefixes & improve related functions (#15258)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-01-15 02:32:18 +00:00
SpacemacsBot a62b943489
[bot] built_in_updates (#15274)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-01-15 02:30:28 +00:00
Lucius Hu abdb818d06
Revert "[bot] built_in_updates" (#15273) 2022-01-15 02:28:07 +00:00
SpacemacsBot 5b2af0498d
[bot] built_in_updates (#15272)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-01-15 02:26:50 +00:00
SpacemacsBot c3ad21645c
[bot] built_in_updates (#15261)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-01-11 04:19:13 +00:00
Maxi Wolff f60aec52a5
[core] Make rolling release message more clear 2022-01-08 21:38:22 +01:00
Maxi Wolff a4e5615f66
[core] Rename next master release to show depreciation message 2022-01-08 16:24:21 +01:00
Maxi Wolff 964f4c5af3
[core] Set version to 0.999 and report rolling release schedule
As we no longer support master releases directly
I think it is important to get rid of this outdated
"almost released" message at startup.
2022-01-08 16:22:15 +01:00
Lin Sun 0206197b22 [core] less ".el" suffix for support both *.el and *.elc 2022-01-03 23:02:43 +01:00
Evan Klitzke 4625745a8b Change core-configuration-layer.el to not use obsolete defmethod 2022-01-03 22:59:11 +01:00
Liu Zhijun 41ea2b2136
Update core-themes-support.el (#15237) 2022-01-03 01:27:29 -05:00
Harvey Chapman 9f92b47ce6 Make dotspacemacs config diffs a little smaller...
Move closing parens on all dotspacemacs/user-* functions to a new line so the
function documentation and closing paren are not part of the config diff when a
user runs `SPC f e D`. This should make it faster to check config changes versus
the template.
2022-01-01 15:59:36 +01:00
Lucius Hu d7f9eb6342 Update minimum supported emacs version to 27.1 2022-01-01 14:32:46 +01:00
SpacemacsBot 295b86e57a
[bot] "built_in_updates" Thu Dec 30 17:38:33 UTC 2021 (#15229) 2021-12-30 14:15:33 -05:00
SpacemacsBot 5bcedd1912
[bot] built_in_updates (#15210)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2021-12-18 04:24:44 +00:00
Daniel Nicolai 58ca8bd879
Fix package update for emacs versions < 26.2 (issue #15212) (#15215) 2021-12-17 17:44:25 -05:00
Daniel Nicolai 8b895fe290 Fix #15186, broken package update due to commit cac0105 2021-12-07 17:36:53 +01:00
JAremko 1a4912e51f [ci] better error handling in html export 2021-11-15 08:08:16 +02:00
JAremko 089ca14331 [ci] Actually fix html export 2021-11-15 02:13:00 +02:00
JAremko 2dded3117a [ci] pre-create the missing dir 2021-11-14 19:51:47 +02:00
JAremko c9917ea541 [ci] fix html export 2021-11-14 19:36:43 +02:00
Daniel Nicolai cac0105553 Add option to select packages for update
This commit changes the yes-or-no-p to a read-answer with three options y, s and
n (for yes, some and no. This of course could be a, s, c for 'all',
'some/select' and 'cancel', but I decided to keep yes no as users are already
familiar with the y and n).

Finally the user can select packages by answer for each package in the list a
yes-or-no-p (pressing y or n, if you upgrade regularly the list usually is not
too long. It is anyway better than having only the options all or none).

The `nonc` construction is just a non cl alternative to cl-remove-if (I've added
the comment with the explanation).
2021-11-12 15:38:49 +01:00
jrudel 1638bbf39d
Fix typo doftile->dotfile (#15147) 2021-11-09 18:57:31 -05:00
Daniel Nicolai 548edefcce Install org from ELPA instead of Org ELPA
From org version 9.5 org will not be distributed from Org ELPA but from
ELPA (see https://list.orgmode.org/87lfa7tc9v.fsf@gnu.org/t/). This commit makes
Spacemacs use/install org from ELPA.

Besides that, this commit removes some 'hack' that seemed to have no effect. As
org comes with Emacs `package-installed-p 'org` will always return t. Also
activating org via `configuration-layer//activate-package` seems to have no
effect.

Finally, the package is declared including a :min-version because appending only
`:location melpa` seems to have no effect (this can probably be considered a
bug).
I am almost certain that the information that was added when making org install
from Org ELPA is still relevant also for installing org from ELPA so I have just
adapted the version number from 0.104 to 0.300.

As the "org" archive has been removed, the `ert-deftest` for it can be removed
also.
2021-11-06 14:34:18 +01:00
Eugene Yaremenko 1582413370
[ci] Disable org-mode hooks while exporting html 2021-10-24 16:39:38 +03:00
Lin Sun 497c767036 [core] Support packing elisp to *.elc and *.el.gz files
Support packing elisp to *.elc and *.el.gz like vallina Emacs.
2021-09-29 22:15:38 +02:00
SpacemacsBot 250e103cab [bot] "built_in_updates" Wed Sep 29 19:18:45 UTC 2021 2021-09-29 21:23:56 +02:00
Maxi Wolff 8e5b4c7ec3
[core] Reformat core-documentation.el 2021-09-10 21:07:22 +02:00
Evelyn Liang 785035cc28
Warn user they are reading develop docs (#14136)
* Warn user they are reading develop docs

Draft commit, definitely still needs work.

The intent is to let users know they are reading documentation that might not
apply to their version of spacemacs. The default install is based on master,
but the docs for both master and develop show up in search engine results.

Currently the only way to see that you are reading the develop docs is by
looking at the subdomain. You'd also need to know that a non-develop website
exists, which is not obvious.

* Use real redirect link back to non-develop docs

Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2021-09-10 21:04:23 +02:00
Daniel Nicolai c5248ac465 fix issue #14919 (force-init-spacemacs-env fails)
Currently when running the env shell-command, emacs does so using its current
process-environment. Instead we should run the command with the
`initial-environment`, which fixes issue #14919.
2021-07-28 15:37:14 +02:00
SpacemacsBot 5cadadc3ea [bot] "built_in_updates" Wed Jul 28 13:12:20 UTC 2021 2021-07-28 15:35:11 +02:00
feltcat 99e74fbd0e Fix typos in .spacemacs.template
Fix some typos and also change the few instances of "non nil" to
"non-nil", so as to be consistent with the rest of the file.
2021-07-28 15:11:35 +02:00
SpacemacsBot 00599d3255 [bot] "built_in_updates" Thu Jul 8 12:30:53 UTC 2021 2021-07-08 10:13:57 -07:00
SpacemacsBot d818e11529 [bot] "built_in_updates" Wed Jul 7 12:41:15 UTC 2021 2021-07-07 05:43:41 -07:00
SpacemacsBot b992ad29bb [bot] "spacemacs_built_in" Tue Jul 6 16:12:28 UTC 2021 2021-07-06 09:20:39 -07:00
SpacemacsBot db2e6d2be4 Built-in files auto-update: Sat Jul 3 00:04:31 UTC 2021 2021-07-02 19:53:46 -07:00
SpacemacsBot 7f743c907a Built-in files auto-update: Fri Jul 2 18:04:36 UTC 2021 2021-07-02 13:59:05 -07:00
Lucius Hu 64fed6f7da
core-dotspacemacs: Fixes typo
Reported here https://github.com/syl20bnr/spacemacs/issues/14875
2021-06-26 07:01:48 +00:00
Markus Bertheau eda7e19370
Don't fail hard when trying to delete a non-existing package (#14821) 2021-06-04 03:57:26 +00:00
Lucas Martins Mendes 42dbd1d359
swap 'so' and 'such' in the 999 banner (#14815) 2021-05-31 14:41:34 +00:00
Richard Kim 63197014cc
use org and org-contrib packages rather than org-plus-contrib
setup org-contrib in org layer rather than spacemacs-org layer

follow-on fix for spacemacs-org layer
2021-05-29 21:10:21 +02:00
Maximilian Wolff a5d05c8fac [default] Do not take y as yes for prompts by default
this is now configurable in your dotfile.
See #14382
2021-05-17 20:43:09 +00:00
duianto 846a5c7c4d [home] Fix full release note cursor position
problem
Opening the full release note, leaves the cursor at the
beginning of the second line after the preview.

solution
Leave the cursor at the beginning of the first line after the preview.
2021-05-17 22:09:18 +02:00
duianto bcfd7a3fe8 [home] Show notes preview, with full note button
Show the first 5 lines of the home buffer notes:
Quick Help and Release Notes.

Added a button to show the full note.
2021-05-16 21:12:42 +02:00
Aaron Zeng 76133f86f7
[csv] Make tsv-mode inherit csv-mode's leader key bindings (#14763) 2021-05-11 20:45:45 -04:00
Thanh Vuong 8adebd9757 [core] remove jump-to-reference from core-jump
we don't need it and it doesn't work
2021-05-08 22:42:29 +02:00
duianto 914605989f [home] Only jump to visible nr lines
problem
The number keys searches for a line starting with a number,
from the beginning to the end of the buffer,
even if they are above or below the window.

solution
Only search for the visible number lines.
2021-05-08 22:37:15 +02:00
duianto 6e578cbb34 [home] Add button: Close note
problem
It might not be clear how the note can be closed.

solution
Add a button: Close note
to the bottom right of the notes:
Quick Help and Release Notes
2021-05-08 22:24:10 +02:00
duianto 5b5bd915c2 [home] New var dotspacemacs-show-startup-list-numbers
This also defines the Spacemacs home buffer key bindings,
in the `emacs-startup-hook`.

Because the keys were being defined to early,
before the new value of: `dotspacemacs-show-startup-list-numbers`
was set in `.spacemacs`.
2021-05-08 22:19:56 +02:00
Damon Chan c4a1caae17
[core] Add :timeout/:idle for spacemacs|define-transient-state (#14742)
* Add :timeout for spacemacs|define-transient-state

This add a :timeout keyword for spacemacs|define-transient-state, it
make use of :timeout keyword defhydra according to
https://github.com/abo-abo/hydra/wiki/internals.

"The :timeout key starts a timer for the corresponding amount of seconds that disables the hydra. Calling any head will refresh the timer."

* Add idle for spacemacs|define-transient-state.

According to https://github.com/abo-abo/hydra/wiki/internals:
This key can delay the appearance of the hint.
Add :timeout and :idle in defhydra body to make it effect.
2021-05-07 21:22:16 +02:00
Lucius Hu e5be31bb85
Bumped minimum emacs version to 26.1 2021-05-03 22:09:11 +02:00
Lucius Hu 2182be9440
[documentation]: Improved core-load-paths and core-versions (#14707)
- Conform to standard ELISP file practice.
- Rearranged the top-level forms s.t. Variables and constants are declared at top.
- Added section markers and documentations.
  - Use three or more `;` as a section header. They work well with built-in outline-mode. `M-j` and `M-k` is the binding to quickly navigate between them.
  - Optionally use `^L` (form-feed) as a divider for the ELISP file. It's rendered as a horizontal divider. And it works with `backward-page` (`C-x [`) and `forward-page` (`C-x ]`)
2021-04-30 05:36:23 +00:00
Lucius Hu 117f4b73ab
squash! Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 01:17:17 -04:00
Lucius Hu bc27203615
Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 05:04:53 +00:00
Sylvain Benner eeee3a1fa0
[core] Fix 'append nesting in transient-state-format-hint macro (#14698) 2021-04-26 23:10:01 -04:00
emacspace e0a6363ba9 Built-in files auto-update: Fri Apr 23 14:02:04 UTC 2021 2021-04-23 23:00:39 +03:00
Lucius Hu 3bbc7a7d40
core-customization: improved SAFE variable handling (#14679)
* core-customization: improved SAFE variable handling

- SAFE can either be a function or t.
  - When it's t, use a default validation function
    `(lambda (val) (validate-value val TYPE t))`
  - When it's a function, use the supplied function.

* Fixed bugs in go and groovy layer

In almost any cases, it's better to supply `t` instead of a function, to
`SAFE` argument of `spacemacs|defc`.

For example,
```elisp
 (spacemacs|defc go-use-gocheck-for-testing nil
   "If using gocheck for testing when running the tests -check.f will be used instead of -run to specify the test that will be ran. Gocheck is mandatory for testing suites."
  'boolean nil #'booleanp)
```

If its value is nil, it evaluate to `nil`, which means that `nil` is not
a safe value for `go-use-gocheck-for-testing` local variable.

But clearly it is.

* core-customization: improved SAFE variable handling

- Added a function `spacemacs-customization//get-variable-validator`.
  This function is designed to be used with `safe-local-variable`
  property of spacemacs custom variables.
  See details in the docstring.

```elisp
(put 'FOO 'safe-local-variable
     (apply-partially 'spacemacs-customization//get-variable-validator
                      'FOO))
```

- This is better than a lambda since `apply-partially` returns a compiled
  function. (Though the performace gain may be tiny.)
- This is better than simply calling `validate-value`, because it returns
  nil when value is nil. But sometimes nil is a valid value.

Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2021-04-19 21:34:09 +02:00
Maximilian Wolff 539c7849d5
[core] Avoid setting safe-local-variable to nil in spacemacs|defc 2021-04-17 22:38:29 +02:00
Maximilian Wolff 8814329a11
[groovy] Replace defvar with spacemacs|defc
And extend spacemacs|defc to allow setting
a :safe directive.
2021-04-17 22:07:44 +02:00
Maximilian Wolff 347ac504d8 [helpful] Make layer alias standard describe-functions 2021-04-15 21:14:23 +00:00
emacspace 4471024721
[bot] Auto-update (#14648)
* documentation formatting: Thu Apr 15 19:58:45 UTC 2021

* Built-in files auto-update: Thu Apr 15 19:57:01 UTC 2021
2021-04-15 22:16:34 +02:00
Daniel Nicolai b3c78297fb Add describe evil ex-command functionality
For introspection purposes it can be nice to have this functionality. Also this
function can be used to discover which ex-commands are available.
2021-04-15 22:03:59 +02:00
Maximilian Wolff 9cb5a3f67b [core] Remove some typos in doc of new jump handlers 2021-04-12 21:13:51 +00:00
Thanh Vuong f136f465ab core: revise core-jump
spacemacs|define-jump-handlers only defines a variable
`spacemacs-jump-handlers-MODE' to which handlers can be added and sets up key
bindings for mode. MODE must be a major mode,. It won't add function to mode
hook anymore.

`jump-to-definition` will walk through the three lists of handlers in the
following order: spacemacs-jump-handlers, spacemacs-jump-handlers-MODE, and
finally spacemacs-default-jump-handlers.

Dynamic handlers like lsp, tide, ggtags use spacemacs-jump-handlers to register
(add-to-list 'spacemacs-jump-handlers 'jump-hanlder)

Conventional static handlers should use spacemacs-jump-handlers-MODE
2021-04-12 21:02:23 +00:00
Mihaly Barasz bebf5c4a07 Use the standard elpa gpg homedir
Closes #13738
2021-04-12 20:15:46 +00:00
Ray 5bd1603b65 [Fix] `dotspacemacs/test-dotfile` complains error on new custom vars
After new custom `dotspacemacs-*` variables being introduced in
`core/core-dotspacemacs.el`, if one has an old `.spacemacs` without these
variables set, `SPC f e R` will complain error messages like
```
Variable: "dotspacemacs-emacs-dumper-dump-file" has value: "nil" that doesn't
match its type: "string"...
```
even if these variables have already had initial value.

This is because `dotspacemacs||let-init-test` macro only locally declares these
variables without setting them with their initial value.

This pull request fix this issue by expanding (dotspacemacs/get-variable-list)
into `'((var1 value1) (var2 value2) ...)` list instead of `(var1 var2 ...)`.
2021-04-10 09:43:44 +02:00
Maximilian Wolff be6f820256 Add missing GPLv3 headers to various files 2021-04-09 20:52:24 +00:00
duianto ef1ad4ecee Check package updates from Spacemacs home buffer
problem:
`SPC f e U` checks if packages have updates.
But if the current buffer isn't the Spacemacs home buffer,
then the minibuffer just shows:
>Do you want to update 1 package(s)? (y or n)

There's no information about which packages have updates.

Canceling the prompt with: `n`
and switching to the messages buffer `SPC b m`, does list them.
>(Spacemacs) --> Found 1 package(s) to update:
>
>(Spacemacs) dap-mode

But it doesn't work to switch to the home buffer,
because that information was erased when the home buffer was refreshed.

solution:
Switch to the home buffer before checking for updates.
2021-04-09 21:40:19 +02:00
duianto 4dc1d7640a [defaults] Add dotspacemacs-scroll-bar-while-scrolling 2021-04-08 21:09:54 +00:00
duianto d012d2d95f [dotfile] New var: dotspacemacs-startup-buffer-multi-digit-delay
It sets the minimum delay in seconds between number key presses.
On the Spacemacs home buffer.
2021-04-08 22:27:54 +02:00
Sylvain Benner 9c7e4bd5f1
[init] Disable GUI elements in early-init as well (#14559)
* [init] Disable GUI elements in early-init as well

Can provide a smoother startup by reducing graphical artifacts.

* [core] Add file for early-init functions

Needed to make the tests to work as early-init.el is not sourced
during tests.

Fixes error:

   Symbol’s function definition is void: spacemacs/removes-gui-elements
2021-04-08 22:25:14 +02:00
emacspace eec5ba6577
[bot] Auto-update (#14573)
* documentation formatting: Mon Apr 5 20:50:44 UTC 2021

* Built-in files auto-update: Mon Apr 5 20:49:17 UTC 2021
2021-04-05 23:19:49 +02:00
Lucius Hu f7650f89c9 refactor
- Replaced `(set (make-local-variable 'foo) bar)` with `(setq-local foo bar)`
2021-04-04 12:48:21 +02:00
Lucius Hu f4067d6375 refactor
- Replaced `(set (make-local-variable 'foo) bar)` with `(setq-local foo bar)`
2021-04-04 12:48:21 +02:00
duianto eaf2e932e6 Fix typo: connst -> const 2021-03-29 10:36:07 +02:00
duianto aabd3bcac3 Fix expected type of: dotspacemacs-which-key-delay
problem:
Setting dotspacemacs-which-key-delay to an integer, for example: 4

Makes the following message to appear on startup:
(Spacemacs) Error in dotspacemacs/init: Variable: "dotspacemacs-which-key-delay" has value: "4" that doesn’t match its type: "(float)". Validator message: "(user-error Looking for `(float)' in `4' failed because:
  not a float)"

cause:
dotspacemacs-which-key-delay expects the type: float
The float type has the description:
The value must be floating point.

solution:
Change the type to: number
The number type has the description:
The value must be a number (floating point or integer).

Source: info (`C-h i`)
In the section: Elisp > Customization Types > Simple Types
2021-03-29 10:00:28 +02:00
syl20bnr aa0c0301e2 [home] Add link to free software definition 2021-03-26 18:58:54 -04:00
emacspace 314c131209 Built-in files auto-update: Fri Mar 26 03:33:18 UTC 2021 2021-03-25 23:52:04 -04:00
syl20bnr 60a070433f [home] Add "Proudly free software" to footer 2021-03-25 23:31:18 -04:00
syl20bnr 92c1565507 [home] Fix alignement and footer regression cased by 9a66c2566 2021-03-25 23:18:39 -04:00
syl20bnr 532ad2567c [home] Add GPLv3 badge in footer 2021-03-25 22:59:32 -04:00
syl20bnr 9a66c2566e [home] Add Licensing button 2021-03-25 22:59:32 -04:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
duianto 7a2eb1be70 [home] Add multi-digit numbers to the startup lists
Added support for jumping to two digit numbers.

How quickly two numbers have to be typed,
can be modified with the variable:
spacemacs-buffer-multi-digit-delay
2021-03-21 23:38:57 +01:00
syl20bnr 3243172af1 [core] Fix another typo
Well not sure I will do all the typos mentioned by email...
2021-03-20 21:41:32 -04:00
syl20bnr 3d1b8865d9 [core] Fix value validation for `dotspacemacs-editing-style` 2021-03-20 20:56:34 -04:00
Lucius Hu 5830e72b60 fixup! Validate .spacemacs variables.
fixes #14535 #14537 #14529 https://github.com/syl20bnr/spacemacs/issues/10638#issuecomment-803247326
2021-03-21 01:29:09 +02:00
Lucius Hu 3e156ec763 fixup! Validate .spacemacs variables. 2021-03-21 00:54:46 +02:00
claude 3f45527813 Update doc-string for dotspacemacs-frame-title-format 2021-03-20 11:45:32 +02:00
claude 70f475d782 Fix .spacemacs validation choices 2021-03-20 11:45:32 +02:00
Aaron L. Zeng 454e729ef0 In SPC h d P, print :toggle expression using Elisp syntax
This prints out an expression in valid Lisp syntax, so that, e.g.,
strings in the expression are quoted.
2021-03-19 09:48:44 +01:00
JAremko 369cf7519f Improve spacemacs|defc doc-string 2021-03-18 20:55:08 +02:00
JAremko bbf050734a Don't show customize link in doc-strings of uncustomizable variables. 2021-03-18 20:55:08 +02:00
emacspace b86c619cb6 Built-in files auto-update: Thu Mar 18 14:37:56 UTC 2021 2021-03-18 18:07:05 +01:00
JAremko 0f2df2727d Validate .spacemacs variables. 2021-03-18 15:47:02 +02:00
Maximilian Wolff 7d2ff48d77 Allow disabling smartparens in dotfile
Smartparens seems to cause performance issues for
a lot of users. This PR allows to disable the package
completely.

There are some functions in elisp and common-lisp mode
which dependt on this package and will manually require
it when executed though. But this should only affect
lispers which mostly will want to have some kind of
smartparent functionality anyway.

For the discussion see here #12533.
2021-03-15 20:51:18 +00:00
emacspace 13791616c7
[bot] Auto-update (#14398)
* documentation formatting: Sat Mar 13 23:53:10 UTC 2021

* Built-in files auto-update: Sat Mar 13 23:51:34 UTC 2021
2021-03-14 00:57:56 +01:00
William McBee 7786e11a35
[core] load-env-vars cygwin support (#14442)
Cygwin's paths use forward slashes, not backward slashes.
2021-03-14 00:33:50 +01:00
duianto 2e48899db7 Open home buffer recent files in expected order
problem:
Pressing a number key on the Spacemacs home buffer,
doesn't reliably open the expected recent file.

cause:
The number keys are bound to open the files in the
order they are listed in the `recentf-list`.

The `recentf-list` is updated when a file is saved.

The home buffers recent files list is only updated
when the home buffer is created/refreshed/resized.

solution:
Open the recent files in the order they were listed
when the home buffer was last updated.

Fixes: incorrect order number in recent files on home buffer #14471
2021-03-13 23:19:02 +01:00
William McBee 40c42e6af5 Support system-type 'cygwin
A minor change allowing environment variables to be stored when running Cygwin version of Emacs.
2021-02-28 22:17:07 +01:00
Lin Sun 722fa45ea1 [core-env] #14348 ignore env "DISPLAY" for .spacemacs.env 2021-02-22 23:46:20 +02:00
emacspace 228097a19e
Built-in files auto-update: Sat Feb 13 22:24:06 UTC 2021 2021-02-13 23:30:05 +01:00
JAremko 7238eb03e8 Better .elc cleanup 2021-02-11 16:08:29 +02:00
emacspace e11fb63f2e Built-in files auto-update: Tue Feb 9 14:26:29 UTC 2021 2021-02-09 22:16:33 +01:00
emacspace ea58a79715
Built-in files auto-update: Sun Feb 7 20:27:36 UTC 2021 2021-02-07 22:27:56 +01:00
Thanh Vuong ae65f3cedd
Fix #14213 remove dash and ht from core libs
- delete dash and ht in core
- reimplemented all ht functions we need in `spacemacs-ht.el` and use them
- add dash to spacemacs-bootstrap
2021-02-07 22:22:39 +01:00
duianto 2a4cd98afc [core] Refactor spacemacs-buffer//do-insert-startupify-lists 2021-02-04 22:40:10 +01:00
duianto ba8f5414c9 Add home buffer named shortcuts functions
Define named functions: spacemacs-buffer/jump-to-...
for the home buffer shortcuts. So that a descriptive name is shown,
in for example the view-lossage (C-h l) buffer.

Before:
 r                      ;; anonymous-command
 p                      ;; anonymous-command

After:
 r                      ;; spacemacs-buffer/jump-to-recent-files
 p                      ;; spacemacs-buffer/jump-to-projects
2021-02-03 22:35:34 +01:00
emacspace 137ed73fce Built-in files auto-update: Sun Jan 31 19:57:56 UTC 2021 2021-02-03 03:53:30 +02:00
JAremko 725d585341 Do not delete non existent files 2021-01-31 21:20:52 +02:00
JAremko 16073171d8 Make Spacemacs byte-compilation optional 2021-01-31 13:32:06 +02:00
JAremko 88980363b6 Recompile Spacemacs core .elc files when Emacs version changes 2021-01-31 13:32:06 +02:00
JAremko 6ae9364a57 cleanup 2021-01-31 13:32:06 +02:00
JAremko 9eb11bb7a2 refactor bytecomp 2021-01-31 13:32:06 +02:00
JAremko 370798262e Make sure that some core files never byte compiled 2021-01-31 13:32:06 +02:00
duianto c590d84f72 Fix key: home buffer list Recent Files by Project
The shortcut was searching for "Recent Files:"
instead of the expected: "Recent Files by Project"
2021-01-29 19:38:43 +01:00
duianto 38a314f7cc Limit home buffer recent files numbers to 9 2021-01-29 19:05:47 +01:00
duianto 963e8a9b69 Add home buffer recent files numbers
Prepend numbers to the Recent Files list.
and bind the number keys to open that file.
2021-01-29 18:24:57 +01:00
JAremko 5182a450e6 Rework byte recompile of built-in libs 2021-01-26 12:54:03 +02:00
emacspace e712eae9f1 Built-in files auto-update: Mon Jan 25 02:12:52 UTC 2021 2021-01-25 09:01:25 +02:00
JAremko 0fd0af5d8c Remove core .elc files on rev change 2021-01-25 04:03:14 +02:00
JAremko 6e275d0b83 fix var name in doc-string 2021-01-25 04:03:14 +02:00
JAremko 78a3adc7e4 Refactor core-compile stuff 2021-01-25 04:03:14 +02:00
duianto b4922325c7 [core] Shorten package update restart message
problem:
When the Emacs frame has the default window width (80 characters).

Then the current restart to update message:
Emacs has to be restarted to actually install the new version of the packages (SPC q r)

is cut off at the Emacs frames right edge:
Emacs has to be restarted to actually install the new version of the packages (S

solution:
Shortening the message:
Restart Emacs to install the updated packages. (SPC q r)

says the same thing, and keeps it within 80 characters.
2021-01-24 21:56:14 +01:00
duianto 92796dc121 [dotfile] new var: dotspacemacs-show-trailing-whitespace
Moved the function definitions for:
spacemacs//trailing-whitespace
spacemacs//set-whitespace-style-for-diff

from: spacemacs-default/packages.el
to:   spacemacs-default/funcs.el
2021-01-24 21:54:40 +01:00
Lin Sun ba9e0afa34 [Core] *core-spacemacs.el: fix default-path for compiling built-in libs 2021-01-20 02:54:13 +02:00
emacspace fc20d1b4c1 Built-in files auto-update: Thu Jan 14 11:25:17 UTC 2021 2021-01-18 20:02:37 +02:00
JAremko 787820a7ad Compile built-in libs 2021-01-18 16:52:39 +02:00
JAremko 9f1f0742c7 Make sure that auto recompile starts asap 2021-01-18 16:52:39 +02:00
JAremko b59e0821bc Move forked libs into separate directory 2021-01-18 16:52:39 +02:00
emacspace a65497be79 Built-in files auto-update: Mon Jan 11 22:37:28 UTC 2021 2021-01-14 13:22:53 +02:00
emacspace 54054ee8d4 Built-in files auto-update: Mon Jan 11 09:35:17 UTC 2021 2021-01-11 22:11:01 +00:00
emacspace b59be2b15e Built-in files auto-update: Mon Jan 11 09:12:37 UTC 2021 2021-01-11 11:33:32 +02:00
emacspace 01f8ccbefb Built-in files auto-update: Sun Jan 10 20:14:15 UTC 2021 2021-01-11 11:11:03 +02:00
JAremko 5d76849737 fix latest mocker.el compat 2021-01-09 15:56:41 +02:00
Daniel Nicolai 34e336402f fix page-break-lines-mode alias definition
This definition requires 3 arguments. Having only two can cause Emacs a
wrong-number-of-arguments error. So this PR just adds the date when the orginal
functions were removed and the alias was created.
2021-01-09 08:58:43 +01:00
Keith Pinson 41c4d5c104 [core] support recents-by-projects in dotspacemacs-startup-lists
`dotspacemacs-startup-lists` by default shows a number of recent files and
projects as two separate lists. If I've been working with a lot of files in one
project, then all the recent files are from one project, even if I set `recents`
to a large amount like 24. This change allows me to see the recent files by
project. Suppose, for example, I have a `vegetables` project and a `fruit`
project, and set `dotspacemacs-startup-lists` to `(recents-by-file . (2 . 3))`.
In the home buffer I will see something like:

    ~/vegetables
        lettuce.el
        squash.el
        tomatoes.el
    ~/fruit
        apple.py
        orange.py
        banana.py

Even though only a subpath is displayed for each file, the click functionality
still works---i.e. the link still has the full path under the covers.

I originally asked a [question](https://emacs.stackexchange.com/q/62524/19069)
on Emacs StackExchange to see if there were any pointers or if this was already
a solved problem. After several days of receiving no answers, and having a
little time to poke at it, I figured I'd implement it myself.

What this does not cover: mixing recent files totally outside projects into this
list. Today they are just filtered out. That is a usecase I didn't need so I
figured that could be done in a subsequent pass if somebody wanted it.
2021-01-09 08:50:08 +01:00
JAremko eccdcbb1db Use keymap based replacement for prefixes. 2020-12-22 14:34:29 +02:00
JAremko 8cf703887f Cleanup 2020-12-18 17:45:38 +02:00