GNU Emacs / N Λ N O - Emacs made simple (github.com)
GNU Emacs / N Λ N O is a set of configuration files for GNU Emacs that makes it look beautifully elegant!
skybert, Haven't used Emacs/tramp since 2003 and am freshly impressed by its capabilities: It lets me edit files on a remote server, connected through a proxy server using my locally installed and carefully tweaked Emacs.
Emacs rocks!
emacs/local → proxy → server/file<br></br>
I found the easiest was to add the ssh/proxy conf to ~/.ssh/config and then just do:
C-x C-f /ssh:server:/file<br></br>
The
.ssh/config
part is:Host server<br></br> Hostname server<br></br> User remote-user<br></br> ProxyCommand ssh proxy -W %h:%p<br></br>
fsf, The Emacs Reference Card is very handy! And if you master what's inside, you'll save way more than $3 of time. https://u.fsf.org/3iz #GNUemacs #GNUpress #Emacs
djrmarques, What is your undo strategy on #emacs? I kinda use the default via the undo function, but somehow I am not too happy with it. Feels like sometimes it undos too much, and then I cannot revert back to the previous state.
louis, That's your chance to actively participate in the next EmacsConf:
Call for participation:
https://emacsconf.org/2023/cfp/
publicvoit, Anything you would like to see me talking about at #EmacsConf?
Call for participation:
https://emacsconf.org/2023/cfp/
ctietze, @publicvoit Oof, you've had a ton of topics on your blog! What about a poll of the N things you're most excited about a.t.m.?
louis, That's your change to actively participate in the next EmacsConf:
mandarvaze, Accidentally discovered #emacs glasses mode :)
https://microblog.desipenguin.com/post/emacs-glasses-mode/
summeremacs, And now for the last one: I came up with an idea two days ago and announced it on /r/emacs. It's a colouring system for items in #dired #Emacs. Almost none of my programmer friends could figure out why I would want to colour files different, which is funny because I can't think of a perfect system which doesn't use colours like this.
But somebody made it for me and it's now available and it works great. 💖 Thank you Karthink!
Dired-Delight
https://github.com/karthink/dired-delight
ctietze, (edited ) @summeremacs It's good :) I can see myself marking stuff this way.
After looking at your screenshots, might I interest you in sexier tab numbers on Mac? :D
https://christiantietze.de/posts/2023/01/use-sf-pro-for-sf-symbols-everywhere-in-emacs/
https://christiantietze.de/posts/2022/12/sf-symbols-emacs-tab-numbers/
summeremacs, @ctietze I'm gonna check out your posts after. I just added them to my inbox. TY!
louis, 4th session with Prot today. :emacs:
(I almost overslept, woke up 10 minutes before. Prot probably thought I was having a bad hair day.)
If you are following this, please consider trying out his services for your own needs:
https://protesilaos.com/coach/Or, if you use any of Prot's excellent packages or themes, consider donating if you can:
https://github.com/sponsors/protesilaosSo let's start.
Today we setup Denote and went through some of its main features. What I like about it:
- It is major mode agnostic. You can use it with Markdown, Org, Plaintext or whatever you want
- It can be used to organize any kind of files (i.e. your picture folder). Denote happily renames and tags your files any way you want
- Denote supports Backlinks. You can even automatically insert the backlinks into a note using Dynamic Blocks. Example:
(#)+BEGIN: denote-backlinks
(#)+END:By executing this block the backlinks are automatically inserted into the note. You have to put this in your config to make this work:
(require 'denote-org-dblock)
- Denote does not implement features that are already in Emacs, i.e. Search. That's my challenge I had with Denote, but as it turned out, with a package like
consult
you can easily search either by filename withconsult-find
or through the content of all notes withconsult-ripgrep
.While doing this we discovered that
global-emojify-mode
interfered with minibuffer completions so that Emacs always froze for a few seconds when starting a consult-find. We found it out by using the amazing Emacs profiler (profiler-start). So if you experience this, consider turning onemojify-mode
selectively.In our next session we'll talk about "Organizing with notes" on a non-technical level. Prot will share some of his experiences, because I'm notoriously disorganized.
Note: I do not receive any benefits by posting about this.
mdallastella, @louis Prot is such a great guy! 😊
publicvoit, @louis I'd really love to join your session about non-tech stuff! I think this would be an awesome session. (Un)fortunately, I'm away from my computer until next week Tuesday.
oatmeal, #emacs Dired Delight lets you tag files in Dired, Emacs’ file manager, with colors https://github.com/karthink/dired-delight Via @summeremacs
Anoncheg,
- fixed emacs: message of found auto save #file# was hidden by another messages
- I learned #Elisp code extension mechanism called "advice", it can add code before/after/around any Elisp defined function. #Emacs
- I enhance my scripts with image posting to #Mastodon, I use Org mode and call saved bash scripts,
here is how it looks now:
oatmeal, #emacs I really like the automatic window handling feature in prot’s new
dired-preview
, which automatically previews the file at point in a side window https://git.sr.ht/~protesilaos/dired-preview
zwol, A more coherent statement of the #emacs question from last night (https://hackers.town/@zwol/110591213611911616):
In any buffer in which Flymake is active, I want the stock command
next-error
to move point to whichever of these two locations is closest to the current location of point: where it would have moved it normally, and whereflymake-goto-next-error
would move it. (It is okay if prefix args other than 1 and -1 behave bizarrely.)Additionally, if the location actually moved to is the location of a Flymake diagnostic,
flymake-show-buffer-diagnostics
should be invoked and point in that buffer should be placed on the diagnostic associated with the location moved to in the source buffer. (Basically match the behavior of a regular old compilation-mode buffer when next-error is scanning it.)I'm pretty sure this could be done with some advice applied to next-error but I'm not smart enough today to code it up myself. Has anyone already implemented this?
morenonatural, @zwol no need for advice... if you want to use next-error you can customize next-error-function
zwol, @morenonatural Thanks for the suggestion! I had to define a next-error-find-buffer-function as well, but it's pretty simple.
yugaego, Jaw falling day:
- civil war in russia
- #XEmacs new release
- what's next 👾 👽 👾
dekkzz76, you breaking out into a song n dance routine in the fruit n veg counter at meijer
yugaego, @dekkzz76 yeah maybe if i got you right. with Billy Holliday in the background.
mfru, hey you guile magicians!
i am stuck with a problem: i want to use (run-server my-handler) and change the definition for my-handler during development (REPL-driven workflow), but no matter what i do (i.e.: passing (lambda (request body) (my-handler request body)) it won't use my changed definition when i.e. change "Hello world!" to "Hello world1!" :(
i then need to restart the guile repl (basically restarting the server) to see my changes, please help!
abcdw, @mfru I drafted one hacky solution (the first thing came to my mind) for that, but later I'll make something saner: https://git.sr.ht/~abcdw/guile-nrepl/tree/aef33b495f870f7c4acb4e3097a3470839d27287/src/nrepl/server.scm#L249
ryuslash, I do miss some things from Gnus, but the more I use #notmuch in #emacs the more I like it. I didn't want to go to my terminal or vterm every time I want to get my mail, so I added a section to the hello screen with a button to call notmuch for me. Easy!
https://git.sr.ht/~ryuslash/emacs-config/commit/748db4a4ee2f2e474f6a295cd417c65e3c5ad88a
ryuslash, @dekkzz76 @sqrtminusone yeah I realize that, and before using notmuch I did have mbsync on a timer, and my initial plan was to use mcron, but now I call mbsync in the pre-new hook of notmuch and I've kinda grown used to it that way. Now I prefer doing it manually because I don't want notmuch to start deleting things tagged as deleted (again something I do in pre-new) while I'm still going through my email.
dekkzz76, i don't delete anything via notmuch
tip for notmuch, regularly compact the xapian databases
daviwil, 🔴 Today on #SystemCrafters Live, we'll try out the Elpaca package manager for Emacs! This project offers some nice features including asynchronous installs and an improved package management UI.
Let's experiment with it to see if it deserves a home in your configuration!
Join us on YouTube or Twitch (in about 30 minutes!)
- https://youtube.com/live/11CO1vCpfrs
- https://twitch.tv/SystemCrafters
- https://systemcrafters.net/live-streams/june-23-2023/
🕐 in your time zone: https://time.is/compare/1800_in_Athens
louis,
polaris64, @louis I use basic Org mode: org-clock-in/out and then org-columns to show the aggregated clocked times for a set of tasks
thees, @louis I use the defaults for clocking my projects:
- https://orgmode.org/manual/Clocking-commands.html
- and https://orgmode.org/manual/The-clock-table.html for reports
I do have a top level heading for each project I’m working on; and track the corresponding tasks within the sub levels. This allows me to also make better assumptions on how time intense certain tasks are/enables me to give better estimates.
exv, just discovered enriched-mode in #emacs . step aside org mode I'm gonna use RFC-1896 for everything now :smugcat:
fatlimey, Guy from the future appears in your coffee shop. Turns out it's @lisperati writing a game in #emacs on his Yoga Book i9 using a 7 year old 40% keyboard using angry fruit salad mode. You're just 5 years behind the curve man.
zwol, Hey #emacs nerds, a weirdly specific question that's impossible to search for because punctuation: Has anyone already written code that merges diagnostics from flymake with diagnostics from compilation-mode, presents a unified list of both, and makes C-x ` walk through that list?
zwol, (I am aware that this is actually one of flycheck's headline features, but flycheck and eglot don't get along AFAICT, and lsp-mode isn't an option for me because it isn't on speaking terms with rust-analyzer, for reasons too infuriating to go into.)
xgqt, A trick to quickly select previously coped text in #Emacs so-called kill-ring using
(popup-menu 'yank-menu)
does not work anymore with 30.0.I first thought that the propertized strings inside kill-ring might be causing this but this is also seems to be some incompability with
popup-menu
.I had to rewrite my
browse-kill-ring
function to usecompleting-read
instead.
tivasyk, Ukrainian learning #emacs vs learning #vim is a bit like learning magic vs learning a language.
magic: you have to learn spells to get predictable results, every spell is specialized, need different result -- learn a different spell. looks cool and goes boom!
language: you learn basic tokens and rules and can build basic phrases. as you get more proficient and try to combine the same tokens differently, you get more complex phrases for more powerful results.
i'd pick a language every time over magic.
GNU Emacs / N Λ N O is a set of configuration files for GNU Emacs that makes it look beautifully elegant!
trexd, Hooks in Emacs are especially confusing when looking at documentation that doesn't refer to
use-package
. People reference adding hooks but the question is where the hell do I put this in my config? Does it go under the lsp config or the mode config? Oh and btw don't forget to remove the "-hook" prefix or you'll get weird silent errors when adding hooks to the ":hook" section. #emacs #lsp