RGB underglow… 90s vibe
Were you alive in the 90s?
RGB underglow… 90s vibe
Were you alive in the 90s?
I’m sure the devs would accept a bug report or, better yet, a patch.
Pointless. Not entertaining or informative.
Two days ago: https://www.reddit.com/r/emacs/comments/17k6pu4/m_aka_mx_evalexpression_does_nothing_upon_hitting/
What have you tried/searched for?
(add-variable-watcher 'autosave-toggle
#'(lambda (_ value _ _)
(if value (autosave-setup) (autosave-teardown))))
Don’t add an anonymous function. It will make it harder to remove. Better yet, implement this as a minor-mode.
(defvar autosave-delay-interval 1
"The amount of time to wait before autosaving after a change has occurred.")
(defvar autosave-exclude-buffer-list
'("COMMIT_EDITMSG" "treemacs-persist")
"List of buffers to exclude from autosaving")
(defvar autosave-immediate-save-functions-list
'(switch-to-buffer other-window windmove-up windmove-down windmove-left windmove-right next-buffer previous-buffer)
"A list of functions which trigger an immediate save")
(defvar autosave-immediate-save-hooks-list
'(mouse-leave-buffer-hook focus-out-hook)
"A list of hooks which trigger an immediate save")
These should be user options defined via defcustom
(defmacro advice-add-list (advice-list how function)
"Add list of advice to given function using the how parameter"
`(dolist (advice ,advice-list)
(advice-add advice ,how ,function)))
(defmacro advice-remove-list (advice-list function)
"Remove list of advice from given function using the how parameter"
`(dolist (advice ,advice-list)
(advice-remove advice ,function)))
(defmacro add-hooks (hook-list function)
"Add list of hooks to given function"
`(dolist (hook ,hook-list)
(add-hook hook ,function)))
(defmacro remove-hooks (hook-list function)
"Remove list of hooks from given function"
`(dolist (hook ,hook-list)
(remove-hook hook ,function)))
These should be functions instead of macros. They should also be prefixed with your package’s “namespace”.
You don’t have anything to guard against a bad response from the server. e.g.
(unless (equal url-http-response-status 200)
(error "Server responded with status: %S" url-http-response-status))
To position point at the end of the headers:
(goto-char url-http-end-of-headers)
This:
(setq result (cons (cons ...) result))
Is more clearly expressed as:
(push (cons ...) result)
Better yet, you could map over the elements you’re interested in and accumulate the results via mapcar
or cl-loop
.
That would obviate the need for the “results” variable.
You could probably shorten things by using the dom-elements
function to directly search for the href’s you’re interested in in combination with dom-parent to get at the parent elements.
Overall your function gets a 65 out of 130 ERU (elisp rating units).
Customize display-buffer-alist
to your liking. There is an Emacs manual section devoted to it as well as several online tutorials.
Auctex requires a :pre-build step which involves generating elisp files. If that step fails, certain parts will break. There are several ways to configure the build as well. See the various issues on the bug tracker for more info. e.g,
Long story short, they’re not being compiled. The message is just output every time. There is a thread on emacs-devel or emacs-bug archive which offers a more detailed explanation if you search there.
So a newbie just popped out
New to Emacs doesn’t mean “new to life”.
Install all-the-packages. It installs all Emacs packages, so you don’t have to research or make decisions (who has time for that?). Disk space is cheap nowadays, so a few TB’s of data isn’t anything to worry about (who has time for that?).
Instead of wondering about what everyone else is using, why not try each one and see what works for you? Ultimately, that’s all that matters.
Be resourceful. Documentation, search engines, then support forums.
Is there a way I can keep using my defined variable
https://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html
As a side note, it would be better to set your variable like so:
(defvar my/mu4e-dir
(cond ((my/laptop-p) "path/to/it")
;;etc
The way you’re doing it in your example seems inverted.
is there any guide you can point me to?
google and the search bar on this subreddit both work great
What have you tried so far?
Seems over-complicated. Most of the “modules” amount to:
;;install package
;;require package
;;provide named feature for module
How is that any better than a single file with some use-package declarations? Especially considering you’re using a literate Org style. The blocks could be toggled with the “tangle” header arg. The Papa Roach Approach (“Cut my lisp; init pieces…this is my last resort!!!”) is an anti-pattern. It makes Emacs load slower and is harder to reason about. If the aim is to grow a community of users, what does this config offer over the myriad other options?
Cut my lisp init pieces!
This is my last resort!
Suffocation. No layers.
Don't give a fuck if my code signals errors!
What type of errors specifically are you running into that break your whole config?
https://github.com/magit/magit/discussions/4997#discussioncomment-7050963
What’s needed is a reproduction case. There are people claiming the bug affects them with both package.el and Straight. I’ve not encountered the bug myself, and frankly can’t be bothered to dig into it if the people who are seeing it can’t provide a repro.
RGB lit crap wasn’t the norm in the 90s. Especially keyboards.