Commit graph

841 commits

Author SHA1 Message Date
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
iliekprogrammar c0948b3e04
[defaults] Fix toggle line numbers to respect dotspacemacs-line-numbers.
Previously, `SPC t n n` (spacemacs/toggle-line-numbers) did not respect
dotspacemacs-line-numbers despite it telling otherwise, when it's binded to a
property list.
2022-05-29 16:05:15 +02:00
Thanh Vuong b8f471dc1c
[core] new recipe :fetcher local
with this curent (package :location local) can be replaced with (package
:location (recipe :fetcher local)) then quelpa will install local pacakge. We
have the benefit of bytecompile and autoload

[packages] use new fetcher for local
2022-05-29 15:58:19 +02:00
iliekprogrammar 96360701cc [evil] fix missing spacemacs-default-map in evil-lisp-state. 2022-05-29 15:51:17 +02:00
Daniel Nicolai f4b04bcf22 Add obsoletion notification evilified-state-evilify 2022-05-29 14:05:07 +02:00
thanhvg 35bfa8601a
[layout] consittent buffer list (#15520)
* [spacemacs-defaults] make split double windows consistent

* [layout] new macro spacemacs||with-persp-buffer-list

to use instead of `with-persp-buffer-list`. The new repsects the order of
original buffer-list

* [default] improve split-triple|grid windows functions

buffer-list will return the list int the the most recent accessed order. Of
which the first one is always the current buffer. So we don't need to do extra
work in removing it.
2022-05-21 09:21:40 +02:00
Ray Wang 24640fca75 Add layer translate for doing translation jobs 2022-05-13 07:36:18 +02:00
Dan Kessler 83d687534c tidy read syntax for anonymous functions
First, change read syntax for anonymous functions currently written '(lambda to
instead just be (lambda; otherwise this raises a warning.

Next, while we're at it, change all instances of #'(lambda to just (lambda,
since the two are equivalent and the latter is more concise (excepting anything
in core/libs or in /local/ subdirs of layers)

https://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html#index-_0023_0027-syntax
2022-05-11 19:24:54 +02:00
SpacemacsBot 11f45d529f
[bot] "built_in_updates" Wed May 11 06:35:02 UTC 2022 (#15508) 2022-05-11 11:39:47 -04:00
Aaron Zeng dc85616df5
Add key binding for revert-buffer in process-menu-mode (#15403) 2022-04-22 21:50:23 -04:00
bryce-carson 434e26486c
Remove disabled code and FIXME: resolved. (#15464) 2022-04-12 05:41:21 +00:00
Ray Wang d3d50f580b [spacemacs-editing] initialize undo-tree-history-directory-alist
to stop *.~undo-tree~ files from scattering.

Fix: #15426
2022-04-02 18:04:01 +02:00
John Practicalli ed19c94a1e
[space-doc] use cl-return as return is obsolete (#15397) 2022-03-06 11:48:20 -05:00
Dominic Pearson a027f34a94
spacemacs-navigation: golden-ratio fix for SPC w TAB. (#15374)
`SPC w TAB` with golden-ratio doesn't work, due to missing hooks. This adds them.
2022-02-25 04:21:17 +00:00
Lucius Hu 910245527d
spacemacs-evil: use official evil-iedit-state
Reuse the official package since the upstream PR is merged.
2022-02-20 01:54:36 +00: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
August Feng ec8c87df27
spacemacs-purpose: Improved README.org (#15346) 2022-02-14 03:10:05 +00:00
Lucius Hu fe23d52414
fixup! fixup! help/helpful: Set tab-width to 8, better integration w/Ivy (#15243)
The previous commit had two issues:
- It doesn't have effect for `help-mode` because its was loaded too late. (In
the `:config` section of `help-fn+`.
- It only has effect for the code sections in `helpful-mode` buffer. And has no
effect in the buffer opened via button widget in either `help-mode` or
`helpful-mode`.

This commit fixes both problems.
2022-02-13 21:58:47 -05:00
thanhvg 60e512a48b
[iedit] use fork (#15318)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-12 05:30:49 +00:00
Lucius Hu 77ba076f69
spacemacs-editing-visual: rework (#15322) 2022-02-12 04:58:35 +00:00
Lucius Hu e24e1e4b57
spacemacs-defaults: Prompt to save a buffer for certain operations (#15331) 2022-02-12 04:09:53 +00:00
Lucius Hu 8bfc1566ec
fixup! help/helpful: Set tab-width to 8, better integration w/ Ivy (#15243) 2022-02-09 17:20:17 -05:00
Lucius Hu 696b15652f
Revert "spacemacs-defaults: Added prompt to save a buffer (#15297)" (#15330)
This reverts commit d33a1a8fcc.
2022-02-09 12:29:46 -05:00
Lucius Hu d33a1a8fcc
spacemacs-defaults: Added prompt to save a buffer (#15297)
Added a new `kill-buffer-hook` that prompt the user to save a buffer
before killing it.
2022-02-09 03:33:21 -05:00
thanhvg 4a305a44af
[compleseus] clean up (#15314) 2022-02-05 13:31:20 -05:00
thanhvg ff2087e6a6
[layouts] fix counsel-projectile (#15311) 2022-02-04 16:52:05 -05:00
Lucius Hu fd652fae0c
update spacemacs/declare-prefix usages (#15278)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-04 05:36:11 +00: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
Lucius Hu 8226efa633
help/helpful: Set tab-width to 8, better integration w/ Ivy (#15243)
Co-authored-by: Tommi Komulainen <tkomulai+github@gmail.com>
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-01-11 04:15:47 +00:00
Julio Rincon 94a6811682
Fix #15198 predicate to check if major-mode is compilation-mode or derived. (#15253) 2022-01-08 08:01:46 -05:00
Lucius Hu d7f9eb6342 Update minimum supported emacs version to 27.1 2022-01-01 14:32:46 +01:00
Daniel Nicolai 8034e471b5 Fix mouse click behavior in customize buffers (issue #15211) 2021-12-30 18:38:12 +01:00
Chris Jenkins 387d165455
Replace use of parent-mode-list in spacemacs-visual/funcs.el (#15209) 2021-12-14 18:14:36 -05:00
Julio Rincon 651a7a9f11 Fix #15198: Apply ansi-colors to compilation-mode derived modes 2021-12-11 08:32:48 +01:00
Rodrigo Kassick d3071ae37b Improve temporary fix for evil-redirect-digit-argument
The fix introduced in 23367d08f8 NOPs
evil-redirect-digit-argument. As a result, pressing 0 while in iedit movement
state does not jump to the beginning of the match or beginning of line.

This change redefines the functions currently needed by evil-iedit-state while
keeping the expected functionality
2021-12-07 17:35:53 +01:00
Kijima Daigo 33e7f62693
Fix small typos (#15188) 2021-11-29 17:29:36 -05:00
Daniel Nicolai 23367d08f8 Add temporary fix for evil-redirect-digit-argument error
iedit does not work already for quite some time. A fix (see
https://github.com/syl20bnr/evil-iedit-state/pull/37) has been proposed, but it
does not get merged (even after multiple reminders). Therefore, I propose to add
this temporary quick fix, that can/should be removed after that PR gets merged.
2021-11-28 09:22:19 +01:00
thanhvg dafae5f136
[compleseus] improve (#15165)
* [compleseus] layout select current project first

* [compleseus] bind embark-export to C-c C-o

same as ivy-occur

* [compleseus] add vertico-{quick, directory}

* [compleseus] set up vertico-repeat
2021-11-18 06:30:26 +01:00
Eugene Yaremenko 337c1108b9
require org-indent for space-doc
Under some conditions `org-indent-mode` was undefined.
2021-10-24 16:43:28 +03:00
JAremko f320524a55 Fetch info+ from GitHub
It seems that wiki doesn't work well with CI.
2021-10-21 17:00:07 +03:00
Lucius Hu 08fa117afa
Update keybinding
fixes https://github.com/syl20bnr/spacemacs/pull/14754#issuecomment-920914465
2021-09-16 22:08:26 +00:00
Daniel Nicolai cabe650f00
Extend spacemacs/copy-file command with extra actions (#14754) 2021-09-15 18:58:14 +00:00
Ryan Prior 4e306e1064
Make golden-ratio global mode and ediff mode coexist harmoniously (#15031)
* [layout] New function spacemacs//ediff-in-comparison-buffer-p

This function is useful to determine whether a given buffer is part of an ediff comparison.

* [layout] New function spacemacs/ediff-balance-windows

Interactive function to balance ediff windows in case they're unbalanced
initially (such as when golden-ratio-mode was active.)

* [navigation] Disables golden-ratio resizing in ediff view

Updates `spacemacs-navigation/init-golden-ratio`:
- inhibits golden-ratio in ediff comparison buffers
- balances the width of ediff comparison buffers on startup

* Updates CHANGELOG.develop with ediff/golden-ratio comment

* [layout] Adds MIT license acknowledgement for new functions

Co-authored-by: Ryan Prior <ryan.prior@coldquanta.com>
2021-09-04 21:02:42 +02:00
SpacemacsBot 59852a6ab5 [bot] "documentation_updates" Wed Aug 25 22:37:51 UTC 2021 2021-08-26 02:00:32 +03:00
duianto 05f5113b70 Use built-in get-buffer 2021-08-22 22:26:37 +02:00
Daniel Nicolai 5a9b813c9e Add jump to specific manual keybinding (SPC h j)
This keybinding could also go under `SPC h M`, but that is currently taken by
`helm-switch-major-mode` (which seems a quite redundant command to me, as you
can switch major-modes directly using `M-x`/`SPC SPC`).
2021-08-22 21:59:34 +02:00
Aaron L. Zeng 1a9ebf42df Fix file rename target path when buffer name is uniquified
When the buffer's name is uniquified (because multiple buffers have
the same short name), it is no longer equal to the basename of the
buffer's file name, so it is incorrect to use the buffer name in the
rename operation.
2021-08-22 19:56:17 +02:00
Daniel Nicolai 2f0f7a3fe7 Fetch info+ via quelpa wiki recipe
Fixes #14525 and 8bcc420.
2021-08-22 19:19:41 +02:00
duianto 090a4c89da
[compleseus] Fix junk file function (#14973)
problem
`SPC f J` (`spacemacs/open-junk-file`) shows:
cond: Cannot open load file: No such file or directory, helm

cause
`spacemacs/open-junk-file`
expects the completion layer to be either: `helm` or `ivy`

notes
The junk file function searches through the junk files,
when the ARG parameter is non-nil
(when it's called with a prefix argument: `SPC u SPC f J`)

The helm and ivy search functions might be choosing the search tool,
based on the first search tool it finds in the variable:
`dotspacemacs-search-tools`
`("rg" "ag" "pt" "ack" "grep")`

The consult package has these two search functions:
`consult-grep`
`consult-ripgrep`

This fix only uses those two for searching.
It checks for the executable: `rg` before `grep`
2021-08-20 04:49:30 +00:00
duianto f3b902a304 Fix ahs ts, open prompt
problem
opening a prompt, ex: `M-x`
while the Symbol Highlight Transient State (`SPC s h`) is open,
leaves `auto-highlight-symbol-mode` enabled

cause
when the idle timer runs,
it tries to disable ahs mode in the prompt window
2021-08-14 16:12:25 +02:00