我已经设置了emacs 刮 </跨度> 在方案模式下打开,我正在运行xscheme,这意味着当我运行命令M-x run-scheme时我可以使用 刮 </跨度> 缓冲来评估方案而不是elisp 。
;;(setq initial- 刮 </跨度> -信息 ””)(setq initial-major-mode’scheme-mode)(需要’xscheme)
;;(add-hook’我可以在这里添加一个钩子吗? - 钩子;; (lambda();; (运行方式)))
我想
完全未经测试:
(add-hook 'after-init-hook 'my-scratch-run-scheme) (defun my-scratch-run-scheme () (with-current-buffer "*scratch*" (run-scheme))) ;; or perhaps (call-interactively 'run-scheme)
我把它放在我的init中
;; hooks ;; startup (add-hook 'emacs-startup-hook (lambda () (helm-mode t) (visual-line-mode t) (pomodoro-start 25))) ; 25 is minutes for work
如果我不添加helm-mode emacs-startup-hook ,我需要跑 M-x helm-mode 我每次开始使用emacs。和 番茄钟 提醒我休息一下
emacs-startup-hook
M-x helm-mode