-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common-tweaks layer #4250
common-tweaks layer #4250
Conversation
This layer has no effect until some tweaks are enable through variables: | ||
|
||
#+begin_src emacs-lisp | ||
(setq-default dotspacemacs-configuration-layers '(common-tweaks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing a set of parens here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.
Is there any reason why we need a complicated macro and not just a bunch of conditionals? |
Hum… It's not really a complicated one (except maybe the loader trick). Advantages are:
The macro is not really difficult to understand and quite straightforward (just grouping all parts with a I see many advantages for the code structure and its cleanness, without big drawbacks. Of course if it is really a problem, it's not difficult for me to change this. |
c0515fb
to
c89cfd2
Compare
c89cfd2
to
8927a8e
Compare
Let me know here if there are other tweaks that can be useful to spacemacs users. |
Allow users to easily enable/disable non-trivial tweaks.
37fc5ba
to
b3577ed
Compare
For (setq counsel-find-file-ignore-regexp "\\(?:\\`[#.]\\)\\|\\(?:[#~]\\'\\)") Ignores any file or directory starting with a dot (plus a couple of more) unless the user starts the search string with a dot. |
@justbur Thanks, done 👍 |
To WIP or not to WIP, that is the question… I still have improvements to do, but I suppose it's ready to merge/review to have first users feedback. |
Not sure if it belongs here, but I'd like to see
|
It may be. Do you already have snippets? |
Not any good ones :-) |
@StreakyCobra (add-hook 'ediff-after-quit-hook-internal 'winner-undo) Slightly modified your attempt for quitting ediff without prompt: (defun ct//no-confirm (origfunc &rest args)
(cl-letf (((symbol-function 'y-or-n-p) (lambda (&rest args) t)))
(apply origfunc args)))
(advice-add 'ediff-quit :around 'ct//no-confirm) |
Thx, I'll add this later this week :-)
|
This at least should be a default, and in any case is not nontrivial. |
Yes, restoration of windows after ediff quit should be a default! |
Agreed. We also have to discuss what belongs to |
Everything from 115 to 122 here should be a tweak, imo: https://github.com/syl20bnr/spacemacs/blob/develop/layers/+distribution/spacemacs-bootstrap/packages.el#L115 There is some discussion about the >gv tweaks in #5273, and I think the J/K move line tweaks fall under the same umbrella. |
@sooheon The link referencing the precise commit so we can find the specified lines if the file change later: spacemacs/layers/+distribution/spacemacs-bootstrap/packages.el Lines 115 to 122 in 7f95d25
Concerning the status of this PR, I'm not sure if it should be its own layer like it I'm proposing here, or if the tweaks should be proposed in the corresponding layer directly. I remember someone pointed this out and it was discussed, but I can't find out where :/ The idea was that if we propose the tweaks directly in the layers, then people just have to read the README of the corresponding layer and already know how to customize it. With a |
@StreakyCobra The link referencing the precise message 😄 |
@fbergroth 👍 Nice thanks :-) |
Hm, especially given that now even spacemacs itself is broken up into layers, it makes even more sense. |
@syl20bnr Is it really in |
I'm still thinking about it but I lean toward dispatching the tweaks where they belongs. If a tweak is worthy it should be an option in its corresponding layer IMO. |
☝️ Agreed |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this PR is still need merging! |
Allow users to easily enable/disable non-trivial tweaks.