Commit Graph

224 Commits

Author SHA1 Message Date
Lucius Hu 7d60d894a7
updated COPYRIGHT 2022-08-05 04:10:26 -04:00
Richard Kim e13e8d7b54 Enable tws mode also in text-mode in addition to prog-mode. 2022-07-15 22:47:16 +02:00
Tim Ruffing c9db028421 [defaults] Exclude `custom-file` correctly in recentf
Entries of recentf-exclude must be expanded, e.g., `~` for the home
directory won't work.
2022-06-25 08:57:50 +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
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
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
Aaron Zeng dc85616df5
Add key binding for revert-buffer in process-menu-mode (#15403) 2022-04-22 21:50:23 -04: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
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
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
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
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
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
Keith Pinson b2a18301fa [defaults] Disable line numbers with `SPC t n n`
Toggles are great and all, but the trouble with the various toggles for line
numbers is that they force you to remember and think about the fact that there
are variant forms of line numbers. To beginners or forgetful people the various
combinations of behavior can be unintuitive here (e.g. toggling off relative
line numbers does nothing if you are actual in visual line numbers mode). Though
it doesn't fit exactly into the normal stuff we have for toggles, due to the
complexity of this situation I think it is good to just have a way to say "line
numbers be gone!"

Wasn't sure what keybinding to use, so used a double-tap mnemonic.

If this PR gets rejected, there are a couple minor fixes that should probably be
pulled out and submitted separately.
2021-07-30 16:57:27 +02:00
Daniel Nicolai 295e4271ef Fix wrong buffer name after file rename
When providing only the new directory path (i.e. without new filename) while
moving a file to a new directory with `spacemacs/rename-current-buffer-file`,
currently Spacemacs opens the file in a new buffer with the directory name.

Additionally, the `file-renamed-p` gets set the wrong value. To fix both
issues (with minimal work), it is easiest to just fix the `new-name`
value (alternatively fixing the `rename-buffer` and `set-visited-file-name`
forms later would not fix the wrong `file-renamed-p` value issue).

Finally when called with a universal-argument, then that argument
unintentionally gets 'passed' in the interactive call to
projectile-invalidate-cache. So this PR fixes that by changing the interactive
call to a funcall.
2021-07-29 20:54:30 +02:00
Daniel Nicolai 15ec5c57e9 Evilify image-dired-thumbnail/display-image-mode-(map)s 2021-07-28 20:40:23 +02:00
duianto cf21402c5c Revert "Fix which-key entries: gr and gs in dired and magit"
This reverts commit ec57b21a92.

A which-key change caused issues with this fix.
And the fix doesn't seem to be needed anymore.

The correct which-key entries appear without the fix.
2021-06-23 17:33:36 +02:00
Maximilian Wolff af86a142eb
[spacemacs-default] Replace "unless null" with "when" 2021-05-27 22:11:08 +02:00
Evan Klitzke 89844fe411
Add custom-file to recentf-exclude list 2021-05-27 22:08:21 +02:00
Maximilian Wolff f51731bf98 [default] Fix the condition for dotspacemacs-use-SPC-as-y
as in my first version it was activating `SPC as y` when
it should actually disable it.
2021-05-17 20:48:37 +00: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
Daniel Nicolai 639160ed95 Evilify xref--xref-buffer-mode 2021-05-16 21:20:36 +02:00
Maximilian Wolff c1c18b7eed Revert "add a feature to save file as a new file and open it in a new buffer"
This reverts commit 4fc78bdc02.
2021-05-07 05:29:22 +00:00
Maximilian Wolff f213b8cf20 Revert "[spacemacs-defaults] Move new function to correct file"
This reverts commit 1169eb3709.
2021-05-07 05:29:03 +00:00
Maximilian Wolff 1169eb3709
[spacemacs-defaults] Move new function to correct file 2021-05-04 22:06:34 +02:00
tddsg 4fc78bdc02
add a feature to save file as a new file and open it in a new buffer 2021-05-04 21:52:34 +02:00
Lucius Hu e5be31bb85
Bumped minimum emacs version to 26.1 2021-05-03 22:09:11 +02:00
Zach Pearson d72e512993
Use timeclock-mode-line-display in default bindings (#14713) 2021-04-25 18:51:39 -04:00
Thanh Vuong 056eb6b91b
[defaults] add qickrun
bind it to `SPC x x`, not sure it's the right place but it's easy to invoke
2021-04-19 22:08:47 +02:00
duianto 4dc1d7640a [defaults] Add dotspacemacs-scroll-bar-while-scrolling 2021-04-08 21:09:54 +00:00
syl20bnr 811001a48c [defaults] Show scroll bar when using the mouse wheel
Thanks to duianto
2021-04-08 21:08:35 +00:00
syl20bnr 01a84d9fe8 [defaults] Improve scrolling with mouse wheel
Thanks to Profpatsch.

Fixes https://github.com/syl20bnr/spacemacs/issues/1781
2021-04-08 21:06:46 +00:00
syl20bnr e6e58c54d6 [defaults] Add SPC f e I to open Emacs early-init.el file 2021-04-08 20:12:51 +00:00
Lucius Hu 55eda227c3 spacemacs-defaults: refactor
- Replaced `(when (not foo) bar)` with `(unless foo bar)`
2021-04-04 12:48:21 +02:00
duianto 222bc1e6bc [base] Fix evil collection buff menu
problem
The evil-collection is loaded in the spacemacs-evil layer.
The spacemacs-evil layer isn't enabled by default
on the spacemacs-base distribution.

solution
Add buff-menu to the list: spacemacs-evil-collection-allowed-list
after the evil-collection has loaded.
2021-03-31 17:38:00 +02:00
duianto b005de9c40 buffer-menu: Add evil collection keys
Fixes: Weird Evil keybidings in buffer-menu #14572
https://github.com/syl20bnr/spacemacs/issues/14572
2021-03-31 12:46:08 +02: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
Ray 1fcef83467 Minibuffer bind C-n C-p to <next>/<previous>-line-or-history-element 2021-03-20 20:42:51 +01:00