linux – 如何检查框架内或终端中的emacs?

linux – 如何检查框架内或终端中的emacs?,第1张

概述基于这个问题: How to set emacsclient background as Emacs background? 我只需要背景框架,而不是终端而不是控制台. 以下是我试图为控制台添加修复程序的方法 (when (display-graphic-p) (tool-bar-mode -1) (scroll-bar-mode t) (require 'nyan-mod 基于这个问题: How to set emacsclient background as Emacs background?

我只需要背景框架,而不是终端而不是控制台.

以下是我试图为控制台添加修复程序的方法

(when (display-graphic-p)    (tool-bar-mode -1)    (scroll-bar-mode t)    (require 'nyan-mode)    (nyan-mode)    (nyan-start-animation)    (mouse-wheel-mode t)    (setq default-frame-aList          '((background-color . "#101416")            (foreground-color . "#f6f3e8"))          ) )

但有了这个,我没有得到emacsclIEnt的背景(即使是帧).也许检查甚至没有在emacsclIEnt中运行?

基本上我不想在终端和控制台中添加背景到emacsclIEnt但在框架中.

解决方法
(defun my-frame-config (frame)  "Custom behavIoUrs for new frames."  (with-selected-frame frame    (when (display-graphic-p)      (set-background-color "#101416")      (set-foreground-color "#f6f3e8"))));; run Now(my-frame-config (selected-frame));; and later(add-hook 'after-make-frame-functions 'my-frame-config)
总结

以上是内存溢出为你收集整理的linux – 如何检查框架内或终端中的emacs?全部内容,希望文章能够帮你解决linux – 如何检查框架内或终端中的emacs?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1033094.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存