推荐阅读:
[AI-人工智能]免翻墙的AI利器:樱桃茶·智域GPT,让你轻松使用ChatGPT和Midjourney - 免费AIGC工具 - 拼车/合租账号 八折优惠码: AIGCJOEDISCOUNT2024
[AI-人工智能]银河录像局: 国内可靠的AI工具与流媒体的合租平台 高效省钱、现号秒发、翻车赔偿、无限续费|95折优惠码: AIGCJOE
[AI-人工智能]免梯免翻墙-ChatGPT拼车站月卡 | 可用GPT4/GPT4o/o1-preview | 会话隔离 | 全网最低价独享体验ChatGPT/Claude会员服务
[AI-人工智能]边界AICHAT - 超级永久终身会员激活 史诗级神器,口碑炸裂!300万人都在用的AI平台
本文介绍了在openSUSE系统中对Emacs文本编辑器进行个性化配置的方法,涵盖了网络设置及Emacs的基本与高级配置技巧,旨在帮助用户打造更高效、个性化的开发环境。
本文目录导读:
Emacs 是一款极其强大的文本编辑器,被许多开发者誉为“神的编辑器”,在 openSUSE 系统下,配置一个适合自己的 Emacs 环境,可以极大提高工作效率和编程体验,本文将详细介绍如何在 openSUSE 系统中安装和配置 Emacs,以及如何通过添加插件和自定义设置来打造一个个性化的开发环境。
安装 Emacs
在 openSUSE 系统中,安装 Emacs 非常简单,打开终端,输入以下命令:
sudo zypper install emacs
等待安装完成,然后输入emacs
命令即可启动 Emacs。
配置 Emacs
1、初始化文件
在 Emacs 的配置过程中,最重要的是初始化文件(通常是~/.emacs
或~/.emacs.d/init.el
),这个文件会在每次启动 Emacs 时自动加载,因此我们可以将所有的配置代码放在这个文件中。
创建一个初始化文件:
touch ~/.emacs.d/init.el
使用 Emacs 打开这个文件,并开始编写配置代码。
2、基本配置
以下是一些基本配置,包括设置字体、主题、编码等。
(1)设置字体
(set-face-attribute 'default nil :font "Consolas 14")
(2)设置主题
(load-theme 'tango t)
(3)设置编码
(set-language-environment "UTF-8") (set-default-coding-systems 'utf-8)
3、安装插件
Emacs 的强大之处在于其丰富的插件生态,以下是一些常用的插件安装方法。
(1)使用 ELPA 安装插件
(require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) (defun install-packages () (interactive) (unless package-archive-contents (package-refresh-contents)) (package-install 'use-package) (package-install 'company) (package-install 'flycheck) (package-install 'helm) (package-install 'smartparens) (package-install 'paredit) (package-install 'rainbow-delimiters) (package-install 'expand-region) (package-install 'Projectile) (package-install 'yasnippet) (package-install 'magit) (package-install 'which-key) (package-install 'eldoc) (package-install 'company-quickhelp) (package-install 'multiple-cursors) (package-install 'org) (package-install 'org-babel-execute) (package-install 'org-ref) (package-install 'org-present) (package-install 'ox-latex) (package-install 'ox-pandoc) (package-install 'htmlize) (package-install 'visual-fill-column) (package-install 'ace-window) (package-install 'avy) (package-install 'popwin) (package-install 'avy-zap) (package-install 'avy-goto-word-1) (package-install 'avy-goto-line) (package-install 'avy-goto-subword-1) (package-install 'avy-move-line) (package-install 'avy-move-subword) (package-install 'avy-copy-line) (package-install 'avy-copy-subword) (package-install 'avy-kill-line) (package-install 'avy-kill-subword) (package-install 'avy-swap-line) (package-install 'avy-swap-subword) (package-install 'avy-push-line) (package-install 'avy-push-subword) (package-install 'avy-pop-line) (package-install 'avy-pop-subword) (package-install 'avy-select-line) (package-install 'avy-select-subword) (package-install 'avy-delete-line) (package-install 'avy-delete-subword) (package-install 'avy-replace-line) (package-install 'avy-replace-subword) (package-install 'avy-define-subword) (package-install 'avy-define-word) (package-install 'avy-define-line) (package-install 'avy-define-region) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword) (package-install 'avy-define-subword)
本文标签属性:
openSUSE Emacs 配置:opensuse i3