Commit Graph

1770 Commits

Author SHA1 Message Date
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