你最近移除了哪些插件和功能

实际上 Emacs 自带就有 macro 展开的函数 M-x pp-macroexpand-last-sexp 即可,只是没有 macrostep 那样部分展开的能力,不过这也足够了。

最近我主要删掉了

5 个赞

这两个我其实也早就删了,^L 其实也不丑,page-break-lines 那长长的线有些情况下还会折行,在 org-roam 以前还有 bug。

transient 原来是 替换 hydra 的啊,多谢分享。 :smile:
那这个 GitHub - magit/transient: Transient commands 又是干什么用的?

这俩是同一个

确实,原来已经内置了。我还在一直在用 git 的版本。

最近把emacs移除了

16 个赞

有点东西 :joy:

666 :rofl: :rofl: :rofl:

transient 是magit依赖的吧,不知道怎么用内置的

Magit的作者把transient从magit里面剥离出来,单独作为一个包贡献到elpa上。

角度刁钻 毫不留情

不是哦,是 Emacs 28+ 就内置了

condy@Youmu ~ % pacman -Ql emacs-git | grep transient
emacs-git /usr/share/emacs/29.0.50/lisp/transient.el.gz
emacs-git /usr/share/emacs/29.0.50/lisp/transient.elc
emacs-git /usr/share/info/transient.info.gz

请问transient如何用?看了茫茫多的文档,我彻底晕了。

1 个赞

看这个就够,跟着示例做

2 个赞

hydra 写个菜单感觉麻烦死了,transient 就不用手动写这些东西,自动生成的。

one-key 最简单,自动生成菜单

我现在直接用 embark 替代感觉也够用,绑定了 ?调出查询界面,可以输入关键字。
比如我按 C-x,然后按 ?,就看到这个界面:

3 个赞

我一直觉得 magit 和 transient 的文档都很糟糕,跟百科全书似的,根本分不出重点。

其实我只需要 quick start 用例而已。

3 个赞

这个方法不错啊,我也想试试看

请问 mode-line 里用的字体是啥?

Bookerly,Kindle 上用的,专门开发出来用于电子产品阅读,我感觉这是最舒服的变宽字体。

顺便提一下,这样设置就可以开启mode-line 使用变宽字体:

(custom-theme-set-faces
 'user
 '(fixed-pitch ((t (:family "SF Mono" :height 1.0))))
 '(variable-pitch ((t (:family "Bookerly" :height 1.0))))
 '(mode-line ((t (:inherit variable-pitch :height 1.0))))
 '(mode-line-inactive ((t (:inherit variable-pitch :height 1.0))))
 ;; 下面是可选的,如果需要在 org-mode启用
 ;; '(Info-quoted ((t (:inherit fixed-pitch))))
 ;; '(org-block ((t (:inherit fixed-pitch))))
 ;; '(org-code ((t (:inherit (shadow fixed-pitch)))))
 ;; '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
 ;; '(org-indent ((t (:inherit (org-hide fixed-pitch)))))
 ;; '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 ;; '(org-property-value ((t (:inherit fixed-pitch))) t)
 ;; '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 ;; '(org-table ((t (:inherit fixed-pitch))))
 ;; '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 1.0))))
 ;; '(org-verbatim ((t (:inherit (shadow fixed-pitch)))))
 )
;; 在需要开启变宽字体的 mode 加 hook
;; (add-hook 'org-mode-hook #'variable-pitch-mode)
7 个赞