Emacs

al3x,
@al3x@hachyderm.io avatar

What am I doing wrong in my attempt to configure the font?

I have the following lines in my init.el:

(set-face-attribute 'default nil :family "Input Mono Compressed" :height 150)  
(set-frame-font "Input Mono Compressed-15" nil t)  

If I execute them, I get what I want.
But when part of the init.el they seem to get reset.
If I include them towards the top of the init.el,
I can notice the larger font and then it "disappears".

Please send doctors :-D.

louis,
@louis@emacs.ch avatar

@al3x Since I had a similar issue, look at the end of your init.el, where you have your (custom-set-variables ...) (which is created by the customize facility). It is very likely that you once changed your font interactively with customize and have this configuration still in your init.el.

jbaty,
@jbaty@social.lol avatar

The Howm package does certain things much like TiddlyWiki does. In a good way. https://baty.net/2024/05/howm-reminds-me-of-tiddlywiki

greg,
@greg@gregnewman.io avatar

@jbaty

> I should write about how the combination of Howm and Denote fit into my process.

Yes please

Neblib,
@Neblib@mastodo.neoliber.al avatar

anyone have a working setup with logseq (in orgdown) and playing nice in logseq's folder (orgroam dailies in 'journals', etc)? Currently my vault is a mix of org and md but I'm hoping to at least get the org files recognized while I work on converting the md (or figure out ). I tried playing with org-logseq but even though I'm matching correctly on its grep for the folder and I have title properties I couldn't get it working after a good attempt.

wigol,
@wigol@fosstodon.org avatar

@Neblib I "kind of" do. I am using heavily modified org-roam-logseq.el though. There still are some issues, e.g. Logseq fails to recognize ID references as backlinks (linking itself works).
I was planning a blog post about my setup, but with recent news about Logseq DB development I am considering ditching it.

Neblib,
@Neblib@mastodo.neoliber.al avatar

@wigol yeah the logseq db announcement was a bit disappointing for sure. Emacs 30 being on Android takes away some of the reasons for a logseq as the mobile end of a org workflow, especially if developer interest refines that mobile experience further.

fd9a,
@fd9a@fosstodon.org avatar

You can now submit tickets to SourceHut using emacs and transient.

https://git.sr.ht/~akagi/srht.el/tree/pre-0.5/lisp/srht-todo.el

ctietze,
@ctietze@mastodon.social avatar

@fd9a I didn't know the ticket system shipped, thanks! That's cool.

amoroso,
@amoroso@fosstodon.org avatar

The rootwork v0.2 blog posted about the author's journey through text editors, from classics such as vi(m) and Emacs to tools I've never heard of. They explain what they use the editors for and why.

https://write.as/hobbsc/wandering-words-on-text-editors

kickingvegas,
@kickingvegas@sfba.social avatar

Ever been too scared to use the #Emacs file manager Dired? I have and still remember what it's like, especially when I was new to it. But it doesn't have to be that way. Here's my take on making Dired a bit easier to use, for beginners and experienced alike.

Announcing Casual Dired, now on MELPA. Read more about it at the link below.

http://yummymelon.com/devnull/announcing-casual-dired---an-opinionated-porcelain-for-the-emacs-file-manager.html

ThierryStoehr, French

Text [#format, to setup your text editor] You want a "Better garbage collection" in your #Emacs?
Here is a solution: https://config.phundrak.com/emacs/basic-config.html#better-garbage-collection
This was explained during the 2024-05-02 french on-line workshop called "Atelier #Emacs", by the author @phundrak, thank you! And happy emacsing!

jtmoulia,
@jtmoulia@mstdn.social avatar

A guide on integrating + + using [mostly] builtin tooling and project local .dir-locals.el variables.

Specifically, this setup uses + for live syntax checking, for code running, for type-checking, and as the shell

Feedback would be welcome -- trying to get it robust + idiomatic.

https://jtmoulia.srht.site/guides/emacs-python-hatch/

thgs,
@thgs@phpc.social avatar

Ok so NOW, I will learn

icedquinn,
@icedquinn@blob.cat avatar

@scathach @thgs in my last days of c++ i had started replacing the self-insert keys to completely eliminate holding shift (because it was a source of RSI.) so things like typing ;; would become :: and - would become an underscore if next to an identifier character kind of stuff

thgs,
@thgs@phpc.social avatar

@icedquinn @scathach

so much to explore and learn..

jochie,
@jochie@strangeweb.page avatar

For the entire time I've been using , I never used (or wanted) any kind of spell-checking. That is changing now that I'm using it a lot more to write notes/documentation with / .

Ideally I want to only do spell-checking on comments, when editing code, and similar configurability for Org documents.

What is the recommended method for something like that in 2024 (on macOS, if that makes any difference)?

dmolina,
@dmolina@fosstodon.org avatar

@jochie for also checking the grammar in , I recommend https://github.com/mhayashi1120/Emacs-langtool available in melpa.

ctietze,
@ctietze@mastodon.social avatar

@dmolina @jochie Even better, for some workflows:

flymake-languagetool and flycheck-languagetool can auto-check while you type. (Also there's more activity on the repos :))

zyd,
@zyd@emacs.ch avatar

Huh, TIL Emacs has a cheat sheet command, M-x cheat-sheet. Really need that for all the C-x r commands. Though, general tip: After any prefix keymap you can press ? to see all the keybindings under it, like so: C-x r ? (second screenshot shows what that looks like)

An Emacs window display a single Help buffer. Shows all the global keybindings under the "C-x r" keymap. They are mostly related to registers, bookmarks, and rectangles.

mms,
@mms@emacs.ch avatar

Anyone know why org-babel-ruby adds an extra " for webs?

#+name: uname
#+begin_src sh :results output replace
uname -a

#+BEGIN_SRC ruby :noweb yes :result scalar
"<<uname()>>.split(" ")[1]

This workss, because uname() is a result of uname -a PLUS AN QUOTATION MARK

mms,
@mms@emacs.ch avatar

@yeti <<>> gets expanded uname” (sometimes uname NEW LINE).

The expansion occurs before evaluation. The first quote encloses umami for it to be treated as string.

The problem is that added quote or new line at the end of expanded uname

yeti,
@yeti@emacs.ch avatar

@mms

The newline is part of uname -a's output. At least where I tested it.

And I'm not claiming there is something wrong, but a) I did not find " mentioned in Org's manual and b) I do not like that asymmetry because it screws up syntax highlighting even more than NoWeb alone and c) even without (b) I think " always should appear in pairs and d) I'm old enough to legally use senile stubbornness as superpower! ​ :-P

jkreeftmeijer,
@jkreeftmeijer@mastodon.social avatar

Instead of enabling Evil mode globally, I now have it turned on only in buffers with major modes derived from prog-mode or text-mode.

Since Evil is disabled in non-editing buffers like Magit and Dired (where it was a nuisance), I got rid of Evil collection and cut my startup time in half.

jkreeftmeijer,
@jkreeftmeijer@mastodon.social avatar

@mykhaylo I have, but it was a bit too big of a step for me.

I'll eventually move off Evil completely, but for now I still rely on Evil when I'm in a rush to get something done.

Meow and the like are definitely on my list to check out (I've even started a project somewhere to try and bridge the gap), but that's quite a list.

Have you switched to Meow completely? How has that been?

mykhaylo,
@mykhaylo@fosstodon.org avatar

@jkreeftmeijer I have come from the other side — used (and still do use) vanilla bindings. But I like it.

elb,
@elb@social.sdf.org avatar

One of my students opened up today, opened up a GUI file manager, found a file, grabbed the icon, dragged it onto Emacs, and dropped it. And it WORKED. I'm not sure which part distressed me more.

chrishuck,
@chrishuck@fosstodon.org avatar

@vt52 @elb I think you dropped a decade there…

(Don’t worry, I do it too. Remember, 1980 was only 20 years ago… Oh, wait)

elb,
@elb@social.sdf.org avatar

@chrishuck @vt52 What's a half score of years among friends?

deadblackclover,
@deadblackclover@functional.cafe avatar
mykhaylo,
@mykhaylo@fosstodon.org avatar

@deadblackclover some come, some go. Live collaborative coding is very possible inEmacs though.

SebasTEAan, German
@SebasTEAan@emacs.ch avatar

I create a new package for Emacs:
hide-secrets: https://gitlab.com/ostseepinguin1/hide-secrets-el

It hides various secrets like passwords, username, email addresses, IP addresses and hash sums in Emacs buffer, so you can show these buffers online without risking privacy.

It's still too early to put it on Melpa.

Feedback very much appreciated.

frescosecco,
@frescosecco@mastodon.social avatar

There is no client for .

pkal,
@pkal@emacs.ch avatar

To anyone in and around Erlangen/Nueremberg, I am organising a german introduction to Emacs next week (10.5.) at my university. My intention is to give a high-level, value-driven overview instead of wasting time on accidental and superficial features such as Magit, Org-Mode, SLIME, etc. (there are plenty of those already).

You can find more details on my Uni-Website: https://wwwcip.cs.fau.de/~oj14ozun/emacs/.

lxsameer,
@lxsameer@social.lxsameer.com avatar

I'm using since 2008, I've been maintaining an Emacs bundle since 2010 (currently working on v4.1). Emacs is genuinely one of the programs that still gives me the goosebumps. After all these years, I still learn new stuff about it that blows my mind.

badrihippo,
@badrihippo@fosstodon.org avatar

@lxsameer that's cool! I recently started using because I found file navigation annoying in other IDEs. I know how to touch type, so now I literally just have to type in what I want (with all the autocompletion benefits just like a shell). Still learning the basics but finding even that awesome!

By the way, I've been programming a bit of too, although right now I prefer the vibes :clojure: :lisp:

mykhaylo,
@mykhaylo@fosstodon.org avatar
Neblib,
@Neblib@mastodo.neoliber.al avatar

is such a rabbit hole. I spent too much time playing with my Android setup with the version and Unexpected Keyboard and it works surprisingly well. I'm going to need to either build myself or use the sourceforge release since fdroid doesn't have gnutls, and likely the termux compatible build as I'll likely need more packages. Eventually I'll try syncing up with my desktop config. I still don't fully understand why the f-droid version is stuck at the Feb build...

Neblib,
@Neblib@mastodo.neoliber.al avatar

@lf_araujo nope, but installing emacs via termux is another way to go, but you'll miss android menu's and other integration. The maintainer porting emacs to android is releasing the android apks on sourceforge, and there is a copy of termux that is built and signed with the same key as the android emacs build so they can cross the app sandboxes that normally block access between the two apps. https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/

Neblib,
@Neblib@mastodo.neoliber.al avatar

@lf_araujo you can also build from source https://git.savannah.gnu.org/cgit/emacs.git/tree/java which I think I want to try as even though SF has cleaned itself up a decade ago, the adware incident still stings in my memory.

kickingvegas,
@kickingvegas@sfba.social avatar

Wrote a post to show how to do mathing in #Emacs with Casual. It only shows a fraction of what you can do with it.
http://yummymelon.com/devnull/mathing-in-emacs-with-casual.html

meedstrom,
@meedstrom@emacs.ch avatar

So I found a situation where emacs -Q runs a loop 60x slower than my personal Doom Emacs config!

Any wizard who might have an idea why? It's as if it's garbage-collecting for a whole minute. It's not the loop itself that's slow, because it actually completes all iterations, and only then does Emacs hang.

louis,
@louis@emacs.ch avatar

@kakafarm @meedstrom Emacs has a very low GC threshold per default.

Some do have this in an early init file:

(setq gc-cons-threshold (* 1024 1024 100)) ; 100 MiB

Or even higher to make sure the startup is fast.

meedstrom,
@meedstrom@emacs.ch avatar

@louis @kakafarm I just learned that a too big chunk of garbage invites something called OS paging... That's why gcmh-mode uses 16 MB as the "high" value.

bram85,

magit-find-file allows you to open a file at a certain revision, which could be a (relative) timestamp. Notation: HEAD@{3 days ago}.

Using these bits, I wrote a small command that displays a file at a certain moment, chosen with the built-in calendar.

(defun bram85-magit-find-file-as-of (datetime)  
 (interactive (list (org-read-date)))  
 (let ((rev (format "HEAD@{%s}" datetime)))  
 (magit-find-file rev (magit-read-file-from-rev rev "File: "))))  

abcdw,
@abcdw@fosstodon.org avatar

Did you know that you can do a git log just for a small part of the file?

abcdw,
@abcdw@fosstodon.org avatar

@karthink @credmp you don't even need emacs for this ;)

abcdw,
@abcdw@fosstodon.org avatar

@TheSecondVariation @yisraeldov select a region, magit-file-dispatch, l.

@krathink also mentioned vc-region-history.

And of course -L flag for git log.

zyd,
@zyd@emacs.ch avatar

I set up Protonmail in Emacs with Hydroxide. It was incredibly easy:

https://github.com/emersion/hydroxide

Build it, authenticate, run the smtp and imap server.

In Emacs, I tested with Gnus. Sending, replying, and all the usual work. Here's the minimum config I'm using:

https://paste.sr.ht/~zyd/e0934aab3a6d2fd541c65c257b8fb3616572d475

#emacs

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • PowerRangers
  • magazineikmin
  • vwfavf
  • osvaldo12
  • hgfsjryuu7
  • InstantRegret
  • Youngstown
  • slotface
  • ngwrru68w68
  • rosin
  • tacticalgear
  • kavyap
  • khanakhh
  • DreamBathrooms
  • anitta
  • thenastyranch
  • tester
  • everett
  • mdbf
  • Durango
  • cubers
  • GTA5RPClips
  • modclub
  • normalnudes
  • ethstaker
  • cisconetworking
  • Leos
  • provamag3
  • All magazines