spacemacs gnuplot

个人博客地址:spacemacs gnuplot | 一张假钞的真实世界

环境

  • Ubuntu 16.10
  • Emacs 24

安装过程

spacemacs安装

  1. 安装Emacs

    sudo apt-get install emacs

  2. 安装spacemacs

(1)如果已经存在Emacs配置文件,首先备份:

复制代码
cd ~
mv .emacs.d .emacs.d.bak
mv .emacs .emacs.bak

不要忘记备份并移动~/.emacs文件,否则Spacemacs将不能加载,因为这个文件阻止从适当的初始化文件加载。

(2)clone配置仓库:

复制代码
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

master分支是稳定不能修改的分支,不要做任何修改,否则会破坏更新机制。使用develop分支可以安全的手动处理更新。

(3)【可选】安装Source Code Pro 字体:

即使在终端运行也需要改变终端字体设置。

(4)启动Emacs。Spacemacs会自动安装它需要的包。如果看到跟包下载相关的错误,那么可以尝试通过以下命令启动emacs禁用HTTPS协议:

复制代码
emacs --insecure

或者可以设置隐藏文件中的dotspacemacs-elpa-https为nil,这样启动emacs的时候就不需要--insecure参数了。可以清理.emacs.d/elpa目录,这样任何已经下载的可能引起错误的包会重新安装。

(5)重新启动emacs完成安装。

spacemacs安装镜像

如果不使用镜像spacemacs安装会很慢,甚至卡死。我使用的是ELPA镜像

安装gnuplot

复制代码
apt-get install gnuplot

gnuplot测试

编辑org文件:

复制代码
#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]"
     | Sede      | Max cites | H-index |
     |-----------+-----------+---------|
     | Chile     |    257.72 |   21.39 |
     | Leeds     |    165.77 |   19.68 |
     | Sao Paolo |     71.00 |   11.50 |
     | Stockholm |    134.19 |   14.33 |
     | Morelia   |    257.56 |   17.67 |

运行命令M-x org-plot/gnuplot

如果命令运行报错:cannot open load file no such file or directory, gnuplot。原因是没有安装gnuplot.el。运行命令M-x package-install RET gnuplot RET

参考网址:GitHub - emacs-gnuplot/gnuplot: A major mode for Emacs for interacting with Gnuplot

相关推荐
lixzest13 小时前
Vim 快捷键速查表
linux·编辑器·vim
ICscholar19 小时前
ExaDigiT/RAPS
linux·服务器·ubuntu·系统架构·运维开发
sim202019 小时前
systemctl isolate graphical.target命令不能随便敲
linux·mysql
米高梅狮子20 小时前
4. Linux 进程调度管理
linux·运维·服务器
再创世纪21 小时前
让USB打印机变网络打印机,秀才USB打印服务器
linux·运维·网络
fengyehongWorld1 天前
Linux ssh端口转发
linux·ssh
知识分享小能手1 天前
Ubuntu入门学习教程,从入门到精通, Ubuntu 22.04中的Shell编程详细知识点(含案例代码)(17)
linux·学习·ubuntu
Xの哲學1 天前
深入解析 Linux systemd: 现代初始化系统的设计与实现
linux·服务器·网络·算法·边缘计算
龙月1 天前
journalctl命令以及参数详解
linux·运维
EndingCoder1 天前
TypeScript 的基本类型:数字、字符串和布尔
linux·ubuntu·typescript