@@ -228,6 +228,23 @@ dired内部是调用`ls'命令来产生文件列表的,通过设置变量`dired-
228
228
#+END_SRC
229
229
** 补全时,忽略某些特定扩展名的文件
230
230
可以设置`completion-ignored-extensions'来实现
231
+ * desktop-save-mode
232
+ ** 如何使用desktop-save-mode保持"*scratch*" buffer内容重启emacs后不变.
233
+ 只需要两个步骤即可
234
+ 1. 通知desktop-save-mode保存变量`initial-scratch-message'的值
235
+ 2. 在emacs退出前,将"*scratch*" buffer内容赋值给`initial-scratch-message'
236
+
237
+ #+BEGIN_SRC emacs-lisp
238
+ require ’desktop)
239
+ (add-to-list ’desktop-globals-to-save ’initial-scratch-message)
240
+ (desktop-save-mode)
241
+
242
+ (add-hook 'kill-emacs-hook
243
+ (lambda ()
244
+ (with-current-buffer "*scratch*"
245
+ (setq-default initial-scratch-message
246
+ (buffer-string)))))
247
+ #+END_SRC
231
248
* 其他
232
249
** 在text terminal下如何调用text-based menu
233
250
按 ~M-`~ 或 ~M-x tmm-menubar~ 即可
@@ -288,3 +305,26 @@ Emacs若在文件的第一行找到#!声明,则认为该文件为script文件.
288
305
按键序列只按到一半时,等待一秒钟会显示已经按下的键序列并等待用户输入剩下的键序列.
289
306
290
307
通过配置`echo-keystrokes'的值,可以修改这个等待时间.
308
+ This global minor mode provides a simple way to switch between layouts and
309
+ the buffers you left open before you switched (unless you closed it).
310
+
311
+ It doesn't require any setup at all more than:
312
+ (0blayout-mode)
313
+
314
+ When you start Emacs with 0blayout loaded, you will have a default layout
315
+ named "default", and then you can create new layouts (<prefix> C-c), switch
316
+ layouts (C-c C-l C-b), and kill the current layout (<prefix> C-k).
317
+ The default <prefix> is (C-c C-l), but you can change it using:
318
+ (0blayout-add-keybindings-with-prefix "<your prefix>")
319
+
320
+ You can also customize-variable to change the name of the default session.
321
+
322
+ The project is hosted at https://github.com/etu/0blayout
323
+ There you can leave bug-reports and suggestions.
324
+
325
+ Another comparable mode is eyebrowse which have been developed for longer.
326
+ ** 如何输入重音符号
327
+ =C-x 8 标点符号 字符= 就能输入重音符号. 例如
328
+ =C-x 8 , c= 能够输入ç
329
+ 使用 =C-x 8 C-h= 能够显示所有可以输入的重音符号
330
+ **
0 commit comments