Commit graph

61 commits

Author SHA1 Message Date
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
Maximilian Wolff 8bcc42059b
Revert "spacemacs-navigation: replace local package info+ with github one"
This reverts commit ee3845315a.

This is leading to an endless installation loop also it may
not be save to directly pull from a wiki.
2021-03-20 01:09:46 +01:00
Maximilian Wolff 6074172207
[spacemacs-navigation] Fix wrong url in recipe declaration 2021-03-20 00:20:21 +01:00
Lucius Hu ee3845315a
spacemacs-navigation: replace local package info+ with github one 2021-03-20 00:19:38 +01:00
duianto 3bb13db857 Fix home buffer ace links
Pressing o `(spacemacs/ace-buffer-links)`
on the Spacemacs home buffer `SPC b h`.

Adds an ace link (one or more highlighted letters),
at the menu buttons, and the startup list entries.

problem:
The text: `[S P A C E M A C S]` gets an ace link,
but it isn't a button.

When the [?] button has been pressed, and the Quick Help
is open, then ace links appear on the open square brackets
for each key binding, but they aren't buttons.

In the lists: recent files, projects, etc.
The ace links appear before the first / (slash).
This means that in windows they appear after `c:`.

solution:
Add the ace links at the beginning of each widget-button.
2021-02-13 09:38:23 +01:00
Maximilian Wolff 0333173f18
Restore old ace bindings and revise documentation changes 2020-12-29 21:29:50 +01:00
Daniel Nicolai db819a6bbd
Add link-hint-open-link to woman-mode keybinding to navigation layer 2020-12-29 21:05:39 +01:00
Daniel Nicolai c595640a34 In navigation layer, Bind J/K to scroll up/down in Info-mode
Spacemacs lacks a keybinding alternative to the most natural way of scrolling
Info pages (i.e. SPC) in vanilla emacs.
Anyway, this commit adds J/K to scroll most naturally through info pages.
Currently, in Info-mode, a keybinding for J is not defined while K is bound to
evil-lookup.

Issue #2828 already adresses the inconsistent experience, and in my opinion this
can and should be improved as navigating Info pages is a very crucial part of
using Emacs.

Personally I have bound J/K to scroll page up/down in buffers/pdf/djvu/doc-view,
which I inherited from using the zathura pdf reader, and I think this is a better
default than the default vim alternatives.
2020-12-13 21:58:24 +01:00
duianto 0f65b000da
Handle buffer move/select/swap to last win nr +1 (#14015)
problem:
The following error messages are shown.

When trying to move, select or swap the current buffer,
to a window nr greater than the total number of open windows.

For example:
With only one window open.
`SPC b 2`
>ad-Advice-select-window: Wrong type argument: window-live-p, nil

In the Buffer Transient State (`SPC b .`):
- `C-2` (`spacemacs/buffer-transient-state/winum-select-window-2`)
>Wrong type argument: window-valid-p, #<window 12>

- `2` (`spacemacs/buffer-transient-state/move-buffer-window-no-follow-2`)
>Wrong type argument: window-live-p, #<window 14>

- `M-2` (`spacemacs/buffer-transient-state/swap-buffer-window-no-follow-2`)
>Wrong type argument: stringp, nil

Solution:
Show a descriptive message, if the target window nr is greater than the number
of open windows. And ignore the LV buffer (hydra).
2020-10-10 22:48:38 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Matt Kramer f1e2d974ed
Make spacemacs/open-junk-file create junk directory and fix counsel issues
This is a squash commit including below commits

Add dotspacemacs--pretty-ignore-subdirs

Within the specified subdirs of `dotspacemacs-start-dir`,
spacemacs/prettify-org-buffer (and hence space-doc-mode) will not be called.
Without this variable, using spacemacs/open-junk-file to create an Org file will
result in prettification, which is not necessarily the desired behavior.

Call make-directory in spacemacs/open-junk-file

This imitates the behavior of open-junk-file.

Prevent spacemacs/open-junk-file from getting confused by Dired

If we're in a dired buffer, counsel-find-file will ignore
current-directory (i.e. junk-dir) and use (dired-current-directory) instead. We
fool Counsel by shadowing major-mode to nil.

Update CHANGELOG.develop re spacemacs/open-junk-file
2020-03-21 20:52:21 +01:00
Maximilian Wolff 2e0f4acad5
Make view-mode closable with q in evil
View-mode was not properly evilified which prevented evil users
from closing it with q. This is now globally fixed not only for
`notmuch-mode`.
2020-03-17 09:21:02 +01:00
Juan Edi 82fc458df3
Do not reverse search direction after highlighting
Before this, `evil-ex-search-direction` would be left set to 'backward after:

  - entering symbol highlight transient state mode (SPC s h)
  - exiting the transient state

That means that pressing 'n' would go to the previous result instead of the next one.
2020-03-08 11:34:21 +01:00
kimr da80634370
converted cl to cl-lib 2019-12-14 20:20:51 +00:00
duianto eced685481
Rename window-manipulation transient state var/funcs
Renamed window transient state related variables and functions,
from: `*window-manipulation*`
to:   `*window*`.
2019-11-23 23:12:37 +01:00
deb0ch 0b824165b6 [centered-cursor-mode] add command to ignored commands
So that when you click in your window your code does not move instantly.
2019-09-16 17:37:42 +03:00
duianto eaed61fb39 Fix canceling spacemacs/ace-buffer-links
problem:
Canceling "spacemacs/ace-buffer-links" with "C-g" showed the error message:
"goto-char: Wrong type argument: number-or-marker-p, t"

solution:
Only go to and press the link if it's a position (number).
2019-07-14 23:10:57 +02:00
emacspace 2aa62bb5ed documentation formatting: Tue May 28 14:41:10 UTC 2019 2019-05-28 17:43:54 +03:00
JAremko ce4e6e355f tag docs 2019-05-28 17:35:49 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
JAremko 77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
康小广 2e6817ef34 Add symbol-overlay package to spacemacs/navigation layer
Defines a transient state for symbol-overlay, and bind it to ~SPC s o~ and ~SPC s O~.

Updates:

* update due to the signature change of `symbol-overlay-get-list`.
* align the docstring using `^^` and add `quit` button.
2019-04-30 17:42:40 +02:00
duianto 29a6ce0ec1 Update Symbol Highlight TS: reorder keys
What: Move "[z] recenter" to end of first row.
Why:  Top row (red keys) will not exit, bottom row (blue keys) exits.
2019-04-22 23:26:12 +02:00
Langston Barrett a60bc0f52e Add ranger-mode to golden-ratio-exclude-modes
Ranger manages window sizing in a way that conflicts with golden-ratio
2019-04-08 17:44:18 +02:00
Richard Kim a46b784e85 ported Info-find-file from emacs 27 by adding third argument 2019-01-22 00:00:42 +02:00
syl20bnr 7cc06ce63e Update change logs
Thank you everybody for participating in #11741 in order to make this
possible!
2019-01-13 16:32:47 +02:00
yuhan0 0596e90c3d Add 'z' recenter bindings for various transient states
By analogy with the "zz", "zb", "zt" vim / evil bindings, this adds an
additional key binding "z" for `recenter-top-bottom` to the following
transient states which navigate around the buffer in large jumps:
- auto-symbol-highlight
- error
- buffer
- vcs
- org-babel

This allows for repositioning of the buffer for visibility without having to
exit the transient state.

Minor updates are also made to documentation of other transient states.
2018-11-12 21:47:17 +00:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
syl20bnr c1c8dec3ea Lazy load flx-ido 2018-06-14 21:09:40 -04:00
Kalle Lindqvist 2007ce3f1a spacemacs-navigation: remove duplicate code 2018-06-14 20:07:35 -04:00
syl20bnr 2ff642e5e0 Lazy load info+
Again :-)
2018-06-10 23:57:02 -04:00
syl20bnr 335e6a2999 Remove buggy find-file-hook--open-junk-file 2018-06-06 00:36:10 -04:00
Thanh Vuong 0d800bdbfa spacemacs/integrate-evil-search also dupdates evil-ex-search-direction 2018-06-03 23:56:57 -04:00
duianto b5589b18b8 Rename ms in func ahs-ms-on-exit to ts
`ms` is an abbreviation for a micro state, which was the previous name for a
transient state.
2018-05-28 00:22:41 +03:00
duianto f4a3025174 Format symbol highlight transient state
Reduce the width of the listed key bindings by:
Moving the range and highlighted symbols counter to the right of the transient
state title.
Shorten some key description names.
Reduce three instances of "search" to just one.

And reorder the listed keys based on their search scope, small to large:
swoop, buffers, files, project.
2018-05-16 00:41:37 +03:00
duianto a64417b3c1 Add golden-ratio support to evil-unimpaired
Switching window with `[ w` and `] w` didn't activate golden-ratio.
2018-05-10 23:56:05 +03:00
syl20bnr 0fa3658cd8 reorganize spacemacs-base distribution into +spacemacs/spacemacs-xxx
This idea is to have the spacemacs-base distribution only configure defaults for
built-in packages. Those buit-in packages are now configured in the new layer
spacemacs-defaults.
Additionally some other packages of spacemacs-base have been dispatched to
better suiting spacemacs layers.

Projectile has been moved to the new layer spacemacs-project

- Move the following packages to bootsrap distributio layer:
  - exec-path-from-shell
  - evil-evilified-state
  - holy-mode
  - hybrid-mode
  - spacemacs-theme
- ace-window has been moved to spacemacs-navigation
- centered-buffer-mode has been moved to spacemacs-editing-visual
- pcre2el has been moved to spacemacs-editing
- evil-escape and evil-visualstar have been moved to spacemacs-evil
2018-03-04 20:54:54 -05:00
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr 29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
smile13241324 aead79ca48 Fix doc for S>-bootstrap, S>-navigation, S>-visual and S>-org 2018-02-28 03:01:39 +02:00
Dieter Komendera 392b77c042 spacemacs-navigation: Switch to centered-cursor-mode on melpa
centered-cursor-mode on melpa is maintained and contains bug- and performance
fixes. #9991
2018-01-28 22:43:17 -05:00
syl20bnr 88a07467fb Import info+.el as local package
Imported from https://github.com/emacsmirror/info-plus
2018-01-25 00:11:15 -05:00
syl20bnr 0f646b884d Add properties for mode-line theme, remove powerline-scale
Since we have now a variable for the mode-line theme, it makes sense to move
the scaling of the mode-line to this variable. Thus the property
=:powerline-scale= of variable dotspacemacs-default-font has been removed and
it is replace by the property =:separator-scale= used in the variable
=dotspacemacs-mode-line-theme=.

This commit also adds a the property =:sperator= for the variable
=dotspacemacs-mode-line-theme= which allows to set the separator type.

Example of the final result:

   dotspacemacs-mode-line-theme '(all-the-icons
                                  :separator cup
                                  :separator-scale 1.5)

Documentation has been updated to reflect the changes.
2018-01-16 22:59:29 -05:00
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
syl20bnr 0aee37fbc9 Fix h key binding in compilation and grep buffers
Fixes #9780
2017-10-31 00:17:48 -04:00
Alexander Miller 403b246212 Add treemacs layer. 2017-10-08 11:45:49 -04:00
syl20bnr 67aaf51631 Move neotree to its own layer in new +filtree folder
Add neotree layer to default spacemacs distribution.
2017-10-08 07:51:43 -04:00
syl20bnr e2e532bb49 core: change <function>p to <function>-p suffixes for consistency
Also defined aliases for backward compatibility with `usedp` functions.
2017-07-02 10:09:39 -04:00
Jonas Strømsodd ec5b8adda8 Add require of avy in spacemacs/ace-buffer-links
To mitigate void definition error
2017-06-10 16:12:34 +02:00