我可以改变emacs的花式启动文本吗? [英] Can I change the emacs fancy-startup-text?

查看:133
本文介绍了我可以改变emacs的花式启动文本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改emacs花式启动文本(显示的闪屏,我知道如何关闭它,但不知道如何用我自己的代替)。想法是建立自己的启动页面,从网上获取一些东西(新闻项目,运动装置,一天中的话)等等。

i would like to change the emacs fancy-startup-text (the splash screen that shows up, i know how to close it but not how to replace it with my own). idea is to build my own startup page that fetches some things from the web (news items, sport fixtures, word of the day etc) for emacs.

推荐答案

您可以使用启动钩子来做任何你想要的任务:

You can use a startup hook to do whatever you want after Emacs starts up:

(add-hook 'emacs-startup-hook 'my-startup-fcn)
(defun my-startup-fcn ()
  "do fancy things"
  (let ((my-buffer (get-buffer-create "my-buffer")))
    (with-current-buffer my-buffer
      ;; this is what you customize
      (insert "some stuff\nmore stuff"))
    (switch-to-buffer my-buffer)))

这篇关于我可以改变emacs的花式启动文本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆