|
33 | 33 |
|
34 | 34 | * 目录 :TOC: |
35 | 35 | - [[#安装方法][安装方法]] |
| 36 | + - [[#windows][Windows]] |
| 37 | + - [[#linux][Linux]] |
| 38 | + - [[#guix-pack][guix pack]] |
36 | 39 | - [[#early-initel][early-init.el]] |
37 | 40 | - [[#设置配置启动模式][设置配置启动模式]] |
38 | 41 | - [[#开启-debug-on-error][开启 debug-on-error]] |
|
46 | 49 | - [[#启动后全屏][启动后全屏]] |
47 | 50 | - [[#straight-包管理][straight 包管理]] |
48 | 51 | - [[#空闲时增量加载包][空闲时增量加载包]] |
| 52 | + - [[#use-package-扩展][use-package 扩展]] |
49 | 53 | - [[#启动速度测试][启动速度测试]] |
50 | 54 | - [[#emacs-配置][emacs 配置]] |
51 | 55 | - [[#载入-custom-文件][载入 custom 文件]] |
|
64 | 68 | - [[#关闭启动动画][关闭启动动画]] |
65 | 69 | - [[#scratch-buffer-设置][scratch buffer 设置]] |
66 | 70 | - [[#yes-or-no-p-改为-y-or-n-p][yes-or-no-p 改为 y-or-n-p]] |
67 | | - - [[#关掉提示声音][关掉提示声音]] |
| 71 | + - [[#关掉提示][关掉提示]] |
68 | 72 | - [[#禁止光标闪烁][禁止光标闪烁]] |
69 | 73 | - [[#启动时不要显示][启动时不要显示]] |
70 | 74 | - [[#tab-设置][tab 设置]] |
|
76 | 80 | - [[#rime-智能的中文输入法][rime 智能的中文输入法]] |
77 | 81 | - [[#字体和主题][字体和主题]] |
78 | 82 | - [[#ligature-连字体][ligature 连字体]] |
79 | | - - [[#awesome-tray-底部信息显示][awesome-tray 底部信息显示]] |
80 | | - - [[#sort-tab-快速切换到其它-buffer][sort-tab 快速切换到其它 buffer]] |
| 83 | + - [[#doom-modeline][doom-modeline]] |
81 | 84 | - [[#hydra-方便的快捷键设置][hydra 方便的快捷键设置]] |
82 | 85 | - [[#recentf-读取最近文件][recentf 读取最近文件]] |
83 | 86 | - [[#popper-更方便的弹出窗口][popper 更方便的弹出窗口]] |
|
89 | 92 | - [[#toggle-one-window-快速切换到单窗口][toggle-one-window 快速切换到单窗口]] |
90 | 93 | - [[#yasnippet-快速插入代码片段][yasnippet 快速插入代码片段]] |
91 | 94 | - [[#separedit-快速编辑][separedit 快速编辑]] |
92 | | - - [[#projectileel-工程管理][projectile.el 工程管理]] |
93 | 95 | - [[#compile-增强][compile 增强]] |
94 | 96 | - [[#eshell-增强][eshell 增强]] |
95 | 97 | - [[#eshell-基本配置][eshell 基本配置]] |
96 | 98 | - [[#eshell-历史记录设置][eshell 历史记录设置]] |
97 | 99 | - [[#esh-mode-设置][esh-mode 设置]] |
98 | 100 | - [[#eshell-git-prompt-提示符美化][eshell-git-prompt 提示符美化]] |
99 | 101 | - [[#eshell-z-智能目录跳转][eshell-z 智能目录跳转]] |
100 | | - - [[#fingertip-智能括号插入][fingertip 智能括号插入]] |
| 102 | + - [[#emacs-libvterm][emacs-libvterm]] |
| 103 | + - [[#智能括号插入][智能括号插入]] |
| 104 | + - [[#结构化编辑-puni][结构化编辑 puni]] |
101 | 105 | - [[#color-rg-快速搜索重构][color-rg 快速搜索重构]] |
| 106 | + - [[#markdown][markdown]] |
102 | 107 | - [[#lsp-bridge-代码补全][lsp-bridge 代码补全]] |
| 108 | + - [[#acm-terminal][acm-terminal]] |
| 109 | + - [[#company-补全][company 补全]] |
| 110 | + - [[#eglot-booster-加速-eglot][eglot-booster 加速 eglot]] |
| 111 | + - [[#启动代码服务][启动代码服务]] |
103 | 112 | - [[#highlight-parentheses-高亮外层括号][highlight-parentheses 高亮外层括号]] |
104 | 113 | - [[#evil-nerd-commenter-智能注释代码][evil-nerd-commenter 智能注释代码]] |
105 | 114 | - [[#apheleia-智能格式化代码][apheleia 智能格式化代码]] |
106 | | - - [[#wuco-拼写检查][wuco 拼写检查]] |
107 | 115 | - [[#git-配置][git 配置]] |
108 | 116 | - [[#magit][magit]] |
109 | 117 | - [[#显示当前行的最后提交信息][显示当前行的最后提交信息]] |
110 | 118 | - [[#smerge-mode-解决冲突][smerge-mode 解决冲突]] |
111 | 119 | - [[#visual-regexp-可视化的正则替换][visual-regexp 可视化的正则替换]] |
112 | 120 | - [[#expand-region-递增选区][expand-region 递增选区]] |
113 | | - - [[#openwith-外部工具打开文件][openwith 外部工具打开文件]] |
114 | 121 | - [[#启用-treesit][启用 treesit]] |
115 | 122 | - [[#elisp-配置][elisp 配置]] |
116 | 123 | - [[#c-开发配置][C++ 开发配置]] |
117 | | - - [[#citre][citre]] |
118 | 124 | - [[#cmake-ts-mode-设置][cmake-ts-mode 设置]] |
119 | 125 | - [[#c-ts-mode-设置][c-ts-mode 设置]] |
120 | 126 | - [[#导入-vs-环境变量][导入 VS 环境变量]] |
| 127 | + - [[#cmake-integration-配置][cmake-integration 配置]] |
121 | 128 | - [[#rust-开发配置][Rust 开发配置]] |
122 | 129 | - [[#python-开发配置][python 开发配置]] |
123 | | - - [[#java-开发配置][java 开发配置]] |
124 | | - - [[#web-开发][web 开发]] |
125 | | - - [[#javascript][Javascript]] |
126 | | - - [[#typescript][Typescript]] |
127 | | - - [[#html][HTML]] |
128 | | - - [[#css][css]] |
129 | 130 | - [[#json-ts-mode][json-ts-mode]] |
130 | 131 | - [[#qml-开发][qml 开发]] |
131 | | - - [[#lua-开发][lua 开发]] |
132 | 132 | - [[#plantuml-支持][plantuml 支持]] |
133 | 133 | - [[#dape-调试][dape 调试]] |
134 | 134 | - [[#dash-docs-查询-dash-文档][dash-docs 查询 dash 文档]] |
|
146 | 146 | - [[#增量载入-org-包][增量载入 org 包]] |
147 | 147 | - [[#知识管理及博客配置][知识管理及博客配置]] |
148 | 148 | - [[#denote][denote]] |
149 | | - - [[#org-roam][org-roam]] |
150 | 149 | - [[#hugo-配置][hugo 配置]] |
151 | | - - [[#上传博客图片到腾讯云对象存储][上传博客图片到腾讯云对象存储]] |
152 | 150 | - [[#自动在中英文插入空格][自动在中英文插入空格]] |
153 | 151 | - [[#org-download-下载图片][org-download 下载图片]] |
154 | 152 | - [[#eaf-配置][eaf 配置]] |
@@ -1366,38 +1364,23 @@ ref:https://github.com/manateelazycat/toggle-one-window |
1366 | 1364 |
|
1367 | 1365 | ) |
1368 | 1366 | #+end_src |
1369 | | -** fingertip 智能括号插入 |
| 1367 | +** 智能括号插入 |
1370 | 1368 |
|
1371 | 1369 | #+begin_src emacs-lisp |
1372 | | - (use-package fingertip |
1373 | | - :straight (fingertip :type git :host github :repo "manateelazycat/fingertip") |
| 1370 | + (use-package elec-pair |
| 1371 | + :config |
| 1372 | + (electric-pair-mode +1) |
| 1373 | + ) |
| 1374 | +#+end_src |
| 1375 | + |
| 1376 | +** 结构化编辑 puni |
| 1377 | + |
| 1378 | +#+begin_src emacs-lisp |
| 1379 | + (use-package puni |
| 1380 | + :straight t |
1374 | 1381 | :defer t |
1375 | | - :hook ((prog-mode toml-ts-mode) . my-enable-pair-parents) |
1376 | | - :bind (:map fingertip-mode-map |
1377 | | - ("(" . fingertip-open-round) |
1378 | | - ("[" . fingertip-open-bracket) |
1379 | | - ("{" . fingertip-open-curly) |
1380 | | - (")" . fingertip-close-round) |
1381 | | - ("]" . fingertip-close-bracket) |
1382 | | - ("}" . fingertip-close-curly) |
1383 | | - ("=" . fingertip-equal) |
1384 | | - ("\"" . fingertip-double-quote) |
1385 | | - ("SPC" . fingertip-space) |
1386 | | - ("RET". fingertip-newline) |
1387 | | - ("C-k" . fingertip-kill) |
1388 | | - ("M-\"" . fingertip-wrap-double-quote) |
1389 | | - ("M-[" . fingertip-wrap-bracket) |
1390 | | - ("M-{" . fingertip-wrap-curly) |
1391 | | - ("M-(" . fingertip-wrap-round) |
1392 | | - ("M-]" . fingertip-unwrap) |
1393 | | - ("M-n" . fingertip-jump-right) |
1394 | | - ("M-p" . fingertip-jump-left) |
1395 | | - ("M-RET" . fingertip-jump-out-pair-and-newline)) |
1396 | | - :init |
1397 | | - (defun my-enable-pair-parents () |
1398 | | - (if (treesit-parser-list) |
1399 | | - (fingertip-mode) |
1400 | | - (electric-pair-mode)))) |
| 1382 | + :hook ((prog-mode) . puni-mode)) |
| 1383 | + |
1401 | 1384 | #+end_src |
1402 | 1385 |
|
1403 | 1386 | ** color-rg 快速搜索重构 |
@@ -1854,21 +1837,23 @@ ref:https://github.com/manateelazycat/toggle-one-window |
1854 | 1837 |
|
1855 | 1838 | #+begin_src elisp |
1856 | 1839 | (use-package c-ts-mode |
1857 | | - :hook ((c-ts-mode c++-ts-mode) . my-enable-code-service) |
1858 | | - :preface |
1859 | | - (defun my-c++-ts-indent-style() |
1860 | | - (let* ((default-style (copy-alist (alist-get 'k&r (c-ts-mode--indent-styles 'cpp)))) |
1861 | | - (custom-style '(;; Do not indent preprocessor statements. |
1862 | | - ((node-is "preproc") column-0 0) |
1863 | | - ;; Do not indent namespace children. |
1864 | | - ((n-p-gp nil nil "namespace_definition") grand-parent 0))) |
1865 | | - ;; Prepend custom rules by appending the default style to the custom style list. |
1866 | | - (combined-style (append custom-style default-style))) |
1867 | | - combined-style)) |
| 1840 | + :hook ((c-ts-mode c++-ts-mode) . my-c-ts-mode-setup) |
1868 | 1841 | :custom |
1869 | 1842 | (c-ts-mode-indent-offset 4) |
1870 | 1843 | (c-basic-offset 4) |
1871 | | - (c-ts-mode-indent-style #'my-c++-ts-indent-style) |
| 1844 | + :config |
| 1845 | + (defun my-c-ts-mode-setup () |
| 1846 | + (treesit-simple-indent-add-rules 'cpp |
| 1847 | + '( |
| 1848 | + ((n-p-gp nil nil "namespace_definition") grand-parent 0) |
| 1849 | + ((node-is "}") standalone-parent 0) |
| 1850 | + ((parent-is "declaration_list") parent-bol c-ts-mode-indent-offset) |
| 1851 | + ) |
| 1852 | + :before |
| 1853 | + 'c-ts-common-baseline-indent-rule |
| 1854 | + ) |
| 1855 | + (my-enable-code-service) |
| 1856 | + ) |
1872 | 1857 | ) |
1873 | 1858 | #+end_src |
1874 | 1859 |
|
|
0 commit comments