这两本书要打起来么... 还没看

:sweat_smile:

好奇左边那本是什么书?

架构整洁之道

2 个赞

反正才两本不如都看了。

1 个赞

:grinning_face_with_smiling_eyes: 巧了,我入坑 Emacs 还是因为大叔这本书的函数式编程这个章节。

1 个赞

写的好不好?

写的挺好的,从架构的层次了解各种不同的编程范式。我以前完全不懂函数式编程,看完后就对函数式编程很有兴趣。

1 个赞

搭个车,问一下大佬,cnfonts 中的字体列表是自动生成的,还是手动录入的?如下字体列表

(setq cnfonts--custom-set-fontnames
      '(
        ("Consolas" "Courier New" "Courier" "Lucida Console" "Monaco" "DejaVu Sans Mono" "Droid Sans Mono" "PragmataPro" "Ubuntu Mono" "Liberation Mono" "MonacoB" "MonacoB2" "MonacoBSemi" "Droid Sans Mono Pro" "Inconsolata" "Source Code Pro" "Envy Code R" "Andale Mono" "Lucida Sans Typewriter" "monoOne" "Lucida Typewriter" "Panic Sans" "Hack" "Bitstream Vera Sans Mono" "HyperFont" "PT Mono" "Ti92Pluspc" "Excalibur Monospace" "Menlof" "Cousine" "Fira Mono" "Lekton" "M+ 1mn" "BPmono" "Free Mono" "Anonymous Pro" "ProFont" "ProFontWindows" "Latin Modern Mono" "Code 2002" "ProggyCleanTT" "ProggyTinyTT" "Iosevka Term" "Inconsolata-dz" "American Typewriter" "Menlo" "Anka/Coder Condensed" "Fantasque Sans Mono" "M+ 1m" "CamingoCode" "Office Code Pro" "Roboto Mono" "Input Mono" "Courier Prime Code" "NanumGothicCoding" "Monoid" "Edlo" "Iosevka" "Mononoki" "Robot Mono" "Fantasque" "Fira Code" "Go Mono" "Noto Sans Mono CJK" "InputMonoCompressed" "Hasklig" "Terminus" "FantasqueSansMono" "AnonymousPro" "3270" "Arimo" "D2Coding" "Inconsolata-g" "ProFont for Powerline" "Meslo" "Meslo Dotted" "Noto Mono" "Symbol Neu" "Tinos" "Space Mono" "SFMono Nerd Font")
        ("KaiTi" "华文楷体" "华文细黑" "华文行楷" "华文仿宋" "KaiTi_GB2312" "宋体" "FangSong_GB2312" "FangSong" "微软雅黑" "Noto Sans Mono CJK SC" "Noto Sans Mono CJK TC" "Noto Sans CJK SC" "Noto Sans CJK TC" "Microsoft Yahei" "Microsoft YaHei Mono" "Microsoft_Yahei" "Ubuntu Mono" "文泉驿等宽微米黑" "文泉驿等宽正黑" "黑体" "Source Han Serif CN" "Source Han Sans CN" "思源黑体 CN" "思源宋体 CN" "Hiragino Sans GB" "文泉驿正黑" "文泉驿点阵正黑" "SimHei" "SimSun" "NSimSun" "LiSu" "YouYuan" "新宋体" "楷体_GB2312" "仿宋_GB2312" "幼圆" "隶书" "STXihei" "STKaiti" "STSong" "STFangsong" "STXingkai")
        ("SimSun-ExtB" "HanaMinB" "MingLiU-ExtB" "PMingLiU-ExtB" "MingLiU_HKSCS-ExtB" "Hanazono Mincho" "Hanazono Mincho A" "Hanazono Mincho B" "Hanazono Mincho C" "Hanazono Mincho Ex" "Hanazono Mincho Ex A1" "Hanazono Mincho Ex A2" "Hanazono Mincho Ex B" "Hanazono Mincho Ex C" "Hanazono Mincho I")
        ("Segoe UI Symbol" "Symbola" "Standard Symbols L")
        ("MS Gothic" "NanumGothic" "Arial Unicode MS" "Lucida Sans Unicode")
        ))

1 个赞

这个是自动生成的,个人加字体可以使用:

(defcustom cnfonts-personal-fontnames nil
  "用户自己维护的字体列表,其结构与 `cnfonts--fontnames-fallback' 一致."
  :group 'cnfonts
  :type '(choice (const :tag "None" nil)
                 (list (repeat :tag "English fonts" string)
                       (repeat :tag "Chinese fonts" string)
                       (repeat :tag "Ext-B fonts" string)
                       (repeat :tag "Symbol fonts" string)
                       (repeat :tag "Fonts used for ornament chars " string))))
1 个赞

多少大洋买的?

谢谢大佬解答!我可能没有说清楚!字体列表如果自动生成的话,我在运行 cnfonts-edit-profile 选择中文字体或是英文字体的时候,有很多字体显示 NA 不可用,这个是什么原因?还是我的理解有问题!

:grinning: 忘记了,大概是 50块左右吧,当时是某当打折一起买的。

恩,那说明你这个字体大概率没有安装。字体列表自动生成的意思不是说这个列表是从你安装的字体生成的,其实是从 fallback 字体列表和 personal 字体列表合并而成的。

1 个赞

好吧,等过年了,我也买一本瞧瞧。。。。

這段代碼小白仍然看不懂,大佬能否給一個例子,增加一個自己的字體。謝謝!

另外,請問大佬,用了cnfonts之後,modeline如果有中文,會大小不一,如何不讓modeline用cnfonts呢。