centos6编译安装emacs25.3

news/2025/2/23 16:00:46

文章目录

    • 前言
    • 第一步:安装依赖包
    • 第二步:下载安装
    • 第三步:编译安装
    • 找不到emacs命令的问题
    • alt键不能用的问题
      • Xshell将左Alt键映射成Meta键
      • SecureCRT将左Alt键映射成Meta键

前言

虽然对Vim已经很熟了,但是一位前辈还是建议说可以试试Emacs
Centos版本:6.9
emacs版本:25.3

第一步:安装依赖包

yum -y groupinstall "Development Tools"
yum -y install gtk+-devel gtk2-devel
yum -y install libXpm-devel
yum -y install libpng-devel
yum -y install giflib-devel
yum -y install libtiff-devel libjpeg-devel
yum -y install ncurses-devel
yum -y install gpm-devel dbus-devel dbus-glib-devel dbus-python
yum -y install GConf2-devel pkgconfig
yum -y install libXft-devel

第二步:下载安装

wget http://mirrors.ustc.edu.cn/gnu/emacs/emacs-25.3.tar.gz

解压安装

tar -zxf emacs-25.3.tar.gz -C /opt/modules

切换到刚刚解压的emacs的根目录

cd /opt/modules/emacs-25.3/

第三步:编译安装

./configure --prefix=/usr/local --with-x-toolkit=gtk
make
make install

安装成功的界面
centos6编译<a class=安装emacs25.3_01.png" />

emacs_42">找不到emacs命令的问题

第一次安装的时候看这个提示我也看不出来是不是安装成功了,不过后面软件的使用都正常。
直接的命令行输入emacs,如果报找不到命令,看下安装到哪个目录了

whereis emacs

centos6编译<a class=安装emacs25.3_02.png" />
到这个目录下运行一下试试

cd /usr/local/bin/
ll
./emacs

centos6编译<a class=安装emacs25.3_03.png" />
OK,可以了
centos6编译<a class=安装emacs25.3_04.png" />
按以下快捷键可以退出Emacs:

<Ctrl-x> <Ctrl-c>

以管理员权限按提示添加软链接到/usr/bin/

ln -s /usr/local/bin/emacs /usr/bin/emacs

OK,可以了,就不留截图了,和上面的一样。

alt键不能用的问题

Windows下Alt键大部分都被占用了,用以呼出菜单项,在Windows下远程远程连接服务器仿真终端会出现Alt键冲突,怎么办呢?
在Windows下一般使用SecureCRT或Xshell连接服务器

Xshell将左Alt键映射成Meta键

Xshell下选择菜单 - 属性 - 终端 -将左ALT用作Meta键
centos6编译<a class=安装emacs25.3_06.png" />
centos6编译<a class=安装emacs25.3_05.png" />

SecureCRT将左Alt键映射成Meta键

选择菜单 - options(选项) - Session Option(会话) - Terminal(终端) - Emulation(仿真) - Emacs - 将Alt键映射为Meta
centos6编译<a class=安装emacs25.3_07.png" />
centos6编译<a class=安装emacs25.3_08.png" />
OK,然后就可以了,不过SecureCRT想修改默认的会话属性,设置default session是不行的,不知道为什么,有兴趣的童鞋可以看看怎么回事


http://www.niftyadmin.cn/n/1387965.html

相关文章

masonry 基本用法

一&#xff1a;masonry 基本用法 fistView[[UIView alloc] init];fistView.backgroundColor[UIColor redColor];[self.view addSubview:fistView];secondView[[UIView alloc] init];secondView.backgroundColor[UIColor blueColor];[self.view addSubview:secondView];threeVie…

转 remote_login_passwordfile参数和命令文件的关系

原文链接 http://xxscfh.itpub.net/post/304/50769remote_login_passwordfile参数是决定oracle是否检查密码文件来进行登录&#xff0c;同时它还决定多少数据库可以用这个密码文件。它是一个静态参数&#xff0c;在rac环境中&#xff0c;每个节点都必须配置相同的值……remote_…

socket计划编制的原则

socket编程原理 1、问题的引入 1) 普通的I/O操作过程:UNIX系统的I/O命令集&#xff0c;是从Maltics和早期系统中的命令演变出来的&#xff0c;其模式为打开一读/写一关闭&#xff08;open-write-read-close&#xff09;。在一个用户进程进行I/O操作时&#xff0c;它首先调用“打…

网络管理 常用命令

网络管理 常用命令 2007-07-14 08:50:02标签&#xff1a;命令 网络 管理    [推送到技术圈] 版权声明&#xff1a;原创作品&#xff0c;允许转载&#xff0c;转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。[url]http://hextwolf.bl…

Windows下IDEA远程调试Spark Streaming

文章目录前言第一步&#xff1a;后台启动Kafka第二步&#xff1a;创建Kafka Topic第三步&#xff1a;启动Kafka的生产者第四步&#xff1a;一个简单的Demo第五步&#xff1a;运行Demo第六步&#xff1a;准备数据第七步&#xff1a;IDEA下Spark Streaming的运行结果最后&#xf…

java连接oracle小小demo

2019独角兽企业重金招聘Python工程师标准>>> package org.jun.controller;import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; /*** 引入jar包ojdbc5.jar*/ public class OracleTest {pub…

Python 面试总结

https://gist.github.com/prim/3e7f814187c715541ef2 https://www.gitbook.com/book/l1nwatch/interview_exercise/details 豆瓣面试官 http://www.dongwm.com/archives/liao-liao-pythonmian-shi-zhe-jian-shi-er/ 写代码&#xff1a; int要考虑负数&#xff0c;0 17、proper…

hbase,hive报错:NoRouteToHostException: No route to host

今天早上打开ClouderaManager集群发现HBase和Hive的服务都报错了&#xff0c;有问题就解决吧 先看下HBase的错误日志&#xff0c; HBase的报错&#xff1a; Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.NoR…