Arch Linux 使用markdown
2015-07-04 20:49
831 查看
Arch Linux 使用markdown
pandoc 文档格式转换pygments 代码高亮
markdown-mode.el 配置emacs
pandoc
号称文件格式转换的瑞士军刀,这里主要是用来把marddown文件转换成html。
Arch需要安装haskell-pandoc,arch.2015.07的标准库里没有haskell-doc, AUR里的haskell-pandoc有依赖问题,安装失败。
到pandoc的官网看一下能不能源码安装,根据安装指示到了ArchHaskell-wiki。
haskell-core
haskell-happstack
# edit /etc/pacman.conf to add repository [haskell-core] Server = http://orbitalfox.com/haskell/core/$arch [haskell-happstack] Server = http://noaxiom.org/$repo/$arch[/code]# Add Magnus Therning's key of haskell-core pacman-key -r 4209170B pacman-key --lsign-key 4209170B # Add Magnus Therning's key of haskell-happstack pacman-key -r B0544167 pacman-key --lsign-key B0544167 # refresh package list and install pandoc pacman -Syu pacman -S haskell-pandocpygments
# install pygements pacman -S python-pygmentsmarkdown-mode
yaourt -S emacs-goodies-el;; edit ~/.emacs (add-to-list 'load-path "emacs-goodies-el") (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t) (add-to-list 'auto-mode-alist '("\\.markdown\\'". markdown-mode)) (add-to-list 'auto-mode-alist '("\\.md\\'". markdown-mode)) (custom-set-variables '(markdown-command "pandoc -f markdown -t html -s --mathml --highlight-style pygments"))markdown-mode 快捷键
C-c C-t $nu: Title 插入标题1...6C-c C-s e: Style emphasis,斜体C-c C-s s: Style strong,加粗C-c C-c e: Control 保存htmlC-c C-c v: 保存html,并用浏览器查看C-c C-c p: 并用浏览器查看
相关文章推荐
- Linux线程同步
- 如何设置linux中Tab键的宽度(可永久设置)
- Linux: 查找使用中的port
- Linux多线程编程-条件变量
- CentOS6.5搭建ftp服务器
- Linux多线程编程-互斥锁
- linux上svn连接visual svn server时ssl鉴权失败,问题解决 SSL handshake failed: SSL error: Key usage violation in ce
- innodb_io_capacity
- linux程序设计——进程和信号总结(第十一章)
- Linux内网环境DNS修改域名指向,JAVA应用程序能否实时切换的问题总结
- Linux 常用命令
- CentOs6.5中安装和配置vsftp简明教程
- Linux System Calls Hooking Method Summary
- Linux经典书籍推荐
- Linux文件系统简介
- 新手安装ubuntu问题解决(easyBCD没作用,分区,双显卡闪屏等)
- Linux NFS 介绍
- linux下google chrome浏览器字体修改
- linux终端绝佳配色方案
- Linux打开VMWare无法找到kernel header path的问题解决