Commit Graph

217 Commits

Author SHA1 Message Date
Maxi Wolff e71a68633b [core] Hotfix org version mismatch during startup
this is caused by the home buffer loading build-in
org which conflicts with elpa org.

We actually want to use elpa org exclusively so we have
to make sure to redraw the spacemacs buffer only
after we have finished loading the layers.

In addition latest org version 9.6 and the behaviour
on emacs 29 has also changed so that org is autoloaded
much earlier than before. This is what actually did
make this bug show up.

However this behaviour was in place since a long time
and could be the cause for a lot of unreproducible
bugs as the actual conflicts are dependent on the
distribution specific emacs version.

Known issues:
This is a hotfix it solves the original issue but
introduces a new, hopefully less dangerous issue,
this is for now the start buffer is not configurable.

I will add a follow up PR to remove this issue however
I think this is far less annoying than a set of random
conflicts caused by loading elisp files from different org
sources.
2023-01-03 08:01:48 +01:00
Lin Sun e043c86163 Fix 15861: detect the audoload function more robustly 2023-01-03 00:03:28 +01:00
Andrew Kraut e1c1110926 Fix widget-button-click for core Spacemacs buffer
Fixes syl20bnr/spacemacs#14964

Possibly related to syl20bnr/spacemacs#13539
2023-01-01 15:09:53 +01:00
Lin Sun 7991003a08 * core-spacemacs-buffer.el: avoid to call functions from org-mode at startup 2023-01-01 15:01:56 +01:00
Maxi Wolff 7795337a5e Fix links to obsolete http://spacemacs.org
they should all point to https://develop.spacemacs.org
instead.

I have also removed the warning from the
develop documentation as this is now the recommended
branch.
2022-12-31 12:43:08 +01:00
Lin Sun 7b738c2b0b * core: eval-and-compile the functions used in eager macro expansion 2022-12-13 20:19:42 +01:00
Lin Sun 3be65c7354 * core: enhance the code to reduce flycheck warnings 2022-12-10 06:37:22 +01:00
Lin Sun e3895f2168 core/core-spacemacs-buffer.el: fix error for using `set' on a lexical varaible 2022-11-01 16:49:21 +01:00
Lucius Hu 1aa28d9148
core-spacemacs-buffer: fixed a bug
There is an unreported bug that when startup list is set to shown `recents-by-project`,
Emacs reports that `projectile-mode` is an unknown symbol.

This commit fixed this bug by checking the existence of `projectile-mode`, which is
automatically loaded during startup.
2022-07-13 03:18:18 +00:00
Lin Sun 22eaeb8ef2 [core] fix functions missed for byte-compiled core-spacemacs-buffer.el 2022-06-15 18:42:02 +02:00
Daniel Nicolai e31804f5c8 Fix broken recentf functionality due to PR #15574
A final 'force push' to PR #15574 implemented functionality to make the banner
size depend on the actual 'startup list' instead of the configured maximum
startup list size. However, that 'new' functionality uses
`spacemacs-buffer//do-insert-startupify-lists` which activates `recentf-mode`,
and unfortunately, activating `recentf-mode` this early in the startup process
somehow breaks recentf functionality, see comments at
a485b5a84b.

This commit 'reverts' the functionality by making the banner size depend on the
configured maximum startup list size.
2022-06-11 12:41:42 +02:00
Daniel Nicolai a485b5a84b Make startup banner scalable (from dotfile)
The default logo is rather big. Users might prefer to use the screen size for
other information (while still showing a banner).

This commit adds a configuration variable `dotspacemacs-startup-banner-scale`
to the dotfile
2022-06-06 09:24:07 +02:00
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Thanh dd1e077c5d [core] enable lexical binding for all 2022-05-11 19:48:17 +02:00
Maxi Wolff 38c034494d
[core] Make startup not fail when home buffer is customised
in #15421 core cannot find a certain text in the home buffer
to start adding additional elements. This did fail the
start up process.

Now if the starting point is not found the cursor is set
to the end of the buffer instead and no error is signaled.

This allows to still have the home buffer work as expected
even when the starting point has been somehow removed.
2022-04-02 21:23:58 +02:00
Aleksander Boruch-Gruszecki f548975841
Use org-agenda-files correctly in insert-recent-files (#15367) 2022-02-25 12:30:03 -05:00
Lucius Hu 761e2025aa
spacemacs-buffer: fix `pacemacs-buffer||propertize-heading`
fixes https://github.com/syl20bnr/spacemacs/issues/15360
2022-02-20 01:56:45 +00:00
Lucius Hu ee3c558c80
spacemacs-buffer: fixed a bug on native-comnp
This was reported in 82624811dd
2022-02-18 03:22:39 +00:00
Lucius Hu 82624811dd
spacemacs-buffer: bug fix and improvement
- Fixed a bug that when `all-the-icons` is excluded by user, Emacs reports
that using undefined `all-the-icons` functions.
- Changed the `spacemacs-buffer-mode` that now it derives from `special-mode`.
  - Also defined a new command `spacemacs-buffer/return` which binds to `RET`
  key in `spacemacs-buffer-mode`. It opens the button on the current line if
  there's any, or move the cursor to next line.
2022-02-17 17:58:17 -05:00
Lucius Hu 13dedf7250
spacemacs-buffer: fix bug to show random banner
The previous commit has a bug that after killing the startup buffer and re-open
it, the random text banner would not appear.

This commit fixes that.
2022-02-15 14:01:03 -05:00
Lucius Hu b7e1dee13f
spacemacs-buffer: Added optional feature to show file icons (#15332)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-15 06:52:00 +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
Lucius Hu 5ad5c6ef83
core-spacemacs-buffer: remoe org (agenda) files from recent files (#15307) 2022-02-03 19:29:05 +00: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
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
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
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
syl20bnr aa0c0301e2 [home] Add link to free software definition 2021-03-26 18:58:54 -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
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
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
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
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
mark30247 c6c949156a fixes the wrong display of Release Notes
Quickhelp and Release Notes are currently not correctly displayed in the home buffer. This fixes it.
2020-10-10 04:08:34 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Maximilian Wolff 5ea876a161
Revise file name abbreviation mechanism
The new variable was not following the naming conventions.
The file was not initialised in core-dotspacemacs.el.
The file was not part of the .spacemacs.template.
2020-07-03 00:52:14 +02:00