Emacs China 新闻速递

Description
主群 / Main Group: @emacs_china
emacs-devel 邮件速递频道: @emacs_devel_mail

本频道推送 Emacs China 新帖子和有关 Emacs 的博客。
关于本频道的问题请直接在主群提。
Advertising
We recommend to visit

Community chat: https://t.me/hamster_kombat_chat_2

Twitter: x.com/hamster_kombat

YouTube: https://www.youtube.com/@HamsterKombat_Official

Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/

Last updated 3 months, 3 weeks ago

Your easy, fun crypto trading app for buying and trading any crypto on the market.

📱 App: @Blum
🆘 Help: @BlumSupport
ℹ️ Chat: @BlumCrypto_Chat

Last updated 3 months, 2 weeks ago

Turn your endless taps into a financial tool.
Join @tapswap_bot


Collaboration - @taping_Guru

Last updated 1 week ago

1 day ago

Irreal: Deleting Extraneous Spaces In Emacs

Charles Choi has a nice post that reminded me about something I know but never take advantage of: the Emacs cycle\-spacing command. As Choi points out, we often find there are additional spaces in our text that we want to delete. That’s not hard. You just navigate to where the extra spaces are and use Back Space or Ctrl+d to delete the unneeded spaces.

Still, that seems like a lot of bother to us Emacsers who are always on the lookout for ways to reduce our work and keystrokes. An easy way to reduce keystrokes for deleting the extra spaces is the cycle\-spacing command that will, on consecutive invocations,

Replace all spaces with a single space
Remove all spaces
Restore the original spacing

Even given a simple keybinding for cycle\-spacing that’s almost always too much work because—at least in my experience—there is usually only a single space to be deleted. For me, the real value of Choi’s post is his offhand remark that Avy makes it easy to navigate to the excess spaces.

Choi doesn’t elaborate but I assume he means something along the lines of using avy\-goto\-char\-timer with two spaces as the argument. Since I have avy\-goto\-char\-timer bound to Hyper+s, it’s really fast to get the target area. Doubtless, those of you using Helm or some other navigation aid have a similar command to get you to the right place.

If you often find yourself with more than one extra spaces, cycle\-spacing may be worth internalizing. Even if you only have a single extra space, it may be worth writing a little Elisp to search for the extra spaces and delete them with cycle\-spacing.

via Planet Emacslife (author: jcs)

1 day, 2 hours ago

如何让 consult-line/swiper case-sensitive (不忽略大小写)?

某个 buffer 中有大量 \Delta\delta。我现在只想搜 \delta 不想搜 \Delta, 但我输入 \delta 也会有 \Delta. 默认行为好像是 smart, 我尝试在 buffer 中设置 completion\-ignore\-case 为 nil, 没有一点用,还是会搜出 \Delta, 怎么办?

1 个帖子 - 1 位参与者

阅读完整话题

via Emacs-general - Emacs China (author: Tokubara)

1 day, 7 hours ago

请问一下,org-babel 的 :post header 可以直接运行 elisp 吗

下面这个例子里,main 中设置 v=value() 时可以运行,但是 v=value1() 时就会报错,是哪里语法有问题吗

```
#+name: value
#+begin_src elisp :post post-v(this)
(list 1 2)
#+end_src

#+name: value1
#+begin_src elisp :post (car this)
(list 1 2)
#+end_src

#+name: post-v
#+begin_src elisp :var val=""
(car val)
#+end_src

#+name: main
#+begin_src elisp :var v=value()
(message (number-to-string v))
#+end_src

```

文档里这么说,最后一句应该是可以直接运行 elisp 的意思,希望我没理解错: Post-processing

The ‘post’ header argument is for post-processing results from block evaluation. When ‘post’ has any value, Org binds the results to ‘this’ variable for easy passing to ‘var’ header argument specifications (see *note Environment of a Code Block::). That makes results available to other code blocks, or even for direct Emacs Lisp code execution.

1 个帖子 - 1 位参与者

阅读完整话题

via Org-mode - Emacs China (author: fdaf)

5 days, 18 hours ago

Top Bug Net: Quickly Switch Between HTML and Plain Text in mu4e

Last updated on December 28, 2024

Mu4e defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions.

I have the following in my Emacs configuration:

```
;; Quickly switching between plain text and HTML mime type.
(keymap-set mu4e-view-mode-map (kbd "K")
(lambda ()
(interactive)
(gnus-article-jump-to-part 1)
(gnus-article-press-button)
(gnus-article-press-button)))

```

This binds key Shift+K to switch between plain text and HTML versions of a message, if the message has both versions available.

The post Quickly Switch Between HTML and Plain Text in &LTcode>mu4e&LT/code> appeared first on Top Bug Net.

via Planet Emacslife (author: Hong)

6 days ago

Irreal: PSA: The GPG/Emacs Interaction Bug Is Fixed

I’m probably the last person on earth to know this but the longstanding bug between GPG and Emacs where Emacs could not open a GPG encrypted file has been fixed. Indeed, it was fixed in GPG 2.4.4 back in January.

I learned this today after spending a couple of hours trying to figure out why I could not longer send an email with mu4e. The problem was that Emacs could not open .authinfo. It took a while but then I remembered that I’d accidentally updated all my brew installed programs, GPG included. Sigh. Fortunately, I had put the recipe for downgrading to GPG 2.4.0 in my journal and just needed to downgrade GPG yet again.

If only life were that easy. GPG 2.4.0 wouldn’t build because of a missing library that was no longer available in Github. I did have it installed but for some reason the brew script couldn’t find it. During all this pain, I deleted GPG and reinstalled it with GPG 2.4.7. Suddenly, everything started working again. After a little research, I discovered that this had been fixed 11 months ago.

All this is good news because

1. I can once again run the latest GPG
2. I no longer have to remember to downgrade GPG every time it gets updated for some reason

I’m writing this post in the unlikely event that someone else hasn’t heard the news and is still struggling to keep GPG 2.4.0 installed or perhaps who, unlike me, figured out how to pin it in Brew. It’s easy to lose track because once you have GPG 2.4.0 running, everything works fine and you don’t think much about the problem. If you’re like me, you probably don’t use it all that much anyway so you’re not bumping up against any problems.

In any case, the problem is solved.

via Planet Emacslife (author: jcs)

6 days, 3 hours ago

第一次用spacemacs,打开js文件以后,按照提示安装了layer,但是按tab 无法自动完成,怎么办

如题11111111111111

2 个帖子 - 2 位参与者

阅读完整话题

via Spacemacs - Emacs China (author: aaabbb)

1 week, 6 days ago

Irreal: Emacs 30.0.93

Andrea Corallo writes with some good news: Emacs 30.0.93, the third pretest for Emacs 30.1 is now available for download and testing. The developers are hoping that this is the last pretest before the final release procedure begins.

This should serve as a definitive answer to those who keep insisting that Emacs is dead technology. The update cycle is robust and ongoing. Indeed, I would claim that it’s optimal. The project is not releasing updates every month as a new, incomplete project would, but neither is the project moribund. Rather, it makes fairly consistent yearly major updates as well as bug fix releases in between.

If you don’t mind living on the edge, download and test the new pretest. It will help move the release process forward and get us to Emacs 30 sooner. Even if you can’t help test the new release, raise a glass to the developers who work so hard for nothing besides the love of their work that makes all our lives better.

via Planet Emacslife (author: jcs)

1 week, 6 days ago

[求助] 如何给 NixOS 上的 Emacs 切换 gtk3 版本以解决 emacs-pgtk 的内存泄漏问题

我在 nix-discouse 上发了此贴,感觉会沉水,便发到论坛里问问坛友。

1 个帖子 - 1 位参与者

阅读完整话题

via Emacs-general - Emacs China (author: Zarkli)

2 weeks, 5 days ago
**Lambda Land: What's New in Emacs: …

Lambda Land: What's New in Emacs: Last Decade Edition

via Planet Emacslife (author: Lambda Land)

We recommend to visit

Community chat: https://t.me/hamster_kombat_chat_2

Twitter: x.com/hamster_kombat

YouTube: https://www.youtube.com/@HamsterKombat_Official

Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/

Last updated 3 months, 3 weeks ago

Your easy, fun crypto trading app for buying and trading any crypto on the market.

📱 App: @Blum
🆘 Help: @BlumSupport
ℹ️ Chat: @BlumCrypto_Chat

Last updated 3 months, 2 weeks ago

Turn your endless taps into a financial tool.
Join @tapswap_bot


Collaboration - @taping_Guru

Last updated 1 week ago