al3x, What am I doing wrong in my attempt to configure the #Emacs 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 #Emacs doctors :-D.
jbaty, The Howm #emacs package does certain things much like TiddlyWiki does. In a good way. https://baty.net/2024/05/howm-reminds-me-of-tiddlywiki
greg, > I should write about how the combination of Howm and Denote fit into my process.
Yes please
Neblib, #emacs #logseq anyone have a working setup with logseq (in orgdown) and #orgroam 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 #mdroam). 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. #askfedi
wigol, @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, @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, 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
amoroso, 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.
kickingvegas, 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.
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, A guide on integrating #emacs + #python + #hatch using [mostly] builtin tooling and project local .dir-locals.el variables.
Specifically, this setup uses #Eglot + #pyright for live syntax checking, #pytest for code running, #MyPy for type-checking, and #IPython as the shell
Feedback would be welcome -- trying to get it robust + idiomatic.
thgs, Ok so NOW, I will learn #emacs
jochie, For the entire time I've been using #Emacs, 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 #OrgMode / #OrgRoam.
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, @jochie for also checking the grammar in #emacs , I recommend https://github.com/mhayashi1120/Emacs-langtool available in melpa.
ctietze,
zyd, Huh, TIL Emacs has a cheat sheet command,
M-x cheat-sheet
. Really need that for all theC-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)
mms,
mms, @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, 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, 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, @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, @jkreeftmeijer I have come from the other side — used (and still do use) vanilla bindings. But I like it.
elb, One of my students opened up #Emacs 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,
elb, @chrishuck @vt52 What's a half score of years among friends?
deadblackclover,
mykhaylo, @deadblackclover some come, some go. Live collaborative coding is very possible inEmacs though.
SebasTEAan, German I create a new package for Emacs:
hide-secrets: https://gitlab.com/ostseepinguin1/hide-secrets-elIt 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,
pkal, 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, I'm using #Emacs 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, @lxsameer that's cool! I recently started using #emacs 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 #Clojure too, although right now I prefer the #clisp vibes :clojure: :lisp:
mykhaylo, @badrihippo @lxsameer this might very well be helpful https://protesilaos.com/codelog/2019-07-22-emacs-dired-basics/
Neblib, #emacs is such a rabbit hole. I spent too much time playing with my Android setup with the #fdroid 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, @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, @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, 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, So I found a situation where
emacs -Q
runs a loop 60x slower than my personal Doom Emacs config!Any #emacs #lisp 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, @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,
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 #emacs 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,
abcdw, @TheSecondVariation @yisraeldov select a region, magit-file-dispatch, l.
@krathink also mentioned vc-region-history.
And of course -L flag for git log.
zyd, 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