您的位置:首页 > 其它

How to configure spacemacs on windows?

2017-09-07 09:30 621 查看

Spacemacs with Windows

First part is the spacemacs and windows configure, and the following is Markdown gramma provided by CSDN.

1. Install Emacs

You may install Emacs with a offical GNU mirror or a nearby mirror. In us an available one is: GNU mirror near RI, US. You may download the latest version of Emacs, and the latest file is named emacs-25.2-x86_64.zip, just give you an reference.

2. Set Emacs

After download Emacs zip file, you may unzip it at where you download it, and then you may see a list of folders names “bin” and others. Copy or cut all the folders here, and create an folder under C:, then name it Emacs. Then paste the copy/cut -ed folders. After this operation, it would seems like C:\Emacs\bin\emacs.exe.

3. Set system environment

Create a system enviroment variable names “HOME” and then set the path as C:\Users\username, the username should be your folder’s name. Then add C:\Emacs\bin\emacs.exe into Path.

4. Download Spacemacs

open windows run by press “start button” + R, then input “cmd” in the new window, press Enter on keyboard. Then you will open the command lines, and copy this command to your black window: git clone https://github.com/syl20bnr/spacemacs /.emacs.d . Note that you shouldn’t use ~/.emacs.d as your file path, as the original .emacs.d is just locates at the C:\Users\username, and the emacs.exe can’t find the spacemacs configuriation if you put the .emacs.d at C:\Users\username\~.emacs.d. This is the key of this introduction. Many people failed on this point.

5. Final

Run your emacs and enjoy it.

OK, THE FOLLOWING IS NOT MY WORK. JUST ENJOY IT IF YOU INTERESTED IN MARKDOWN.

本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:

Markdown和扩展Markdown简洁的语法

代码块高亮

图片链接和图片上传

LaTex数学公式

UML序列图和流程图

离线写博客

导入导出Markdown文件

丰富的快捷键

快捷键

加粗
Ctrl + B


斜体
Ctrl + I


引用
Ctrl + Q


插入链接
Ctrl + L


插入代码
Ctrl + K


插入图片
Ctrl + G


提升标题
Ctrl + H


有序列表
Ctrl + O


无序列表
Ctrl + U


横线
Ctrl + R


撤销
Ctrl + Z


重做
Ctrl + Y


Markdown及扩展

Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,然后转换成格式丰富的HTML页面。 —— [ 维基百科 ]

使用简单的符号标识不同的标题,将某些文字标记为粗体或者斜体,创建一个链接等,详细语法参考帮助?。

本编辑器支持 Markdown Extra ,  扩展了很多好用的功能。具体请参考Github.

表格

Markdown Extra 表格语法:

项目价格
Computer$1600
Phone$12
Pipe$1
可以使用冒号来定义对齐方式:

项目价格数量
Computer1600 元5
Phone12 元12
Pipe1 元234

定义列表

Markdown Extra 定义列表语法:
项目1
项目2
定义 A

定义 B

项目3
定义 C

定义 D

定义D内容

代码块

代码块语法遵循标准markdown代码,例如:

@requires_authorization
def somefunc(param1='', param2=0):
'''A docstring'''
if param1 > param2: # interesting
print 'Greater'
return (param2 - param1 + 1) or None
class SomeClass:
pass
>>> message = '''interpreter
... prompt'''


脚注

生成一个脚注1.

目录

[TOC]
来生成目录:

Spacemacs with Windows
快捷键

Markdown及扩展
表格

定义列表

代码块

脚注

目录

数学公式

UML 图

离线写博客

浏览器兼容

数学公式

使用MathJax渲染LaTex 数学公式,详见math.stackexchange.com.

行内公式,数学公式为:Γ(n)=(n−1)!∀n∈N。

块级公式:

x=−b±b2−4ac−−−−−−−√2a

更多LaTex语法请参考 这儿.

UML 图:

可以渲染序列图:

Created with Raphaël 2.1.0张三张三李四李四嘿,小四儿, 写博客了没?李四愣了一下,说:忙得吐血,哪有时间写。

或者流程图:

Created with Raphaël 2.1.0开始我的操作确认?结束yesno

关于 序列图 语法,参考 这儿,

关于 流程图 语法,参考 这儿.

离线写博客

即使用户在没有网络的情况下,也可以通过本编辑器离线写博客(直接在曾经使用过的浏览器中输入write.blog.csdn.net/mdeditor即可。Markdown编辑器使用浏览器离线存储将内容保存在本地。

用户写博客的过程中,内容实时保存在浏览器缓存中,在用户关闭浏览器或者其它异常情况下,内容不会丢失。用户再次打开浏览器时,会显示上次用户正在编辑的没有发表的内容。

博客发表后,本地缓存将被删除。 

用户可以选择 [/i] 把正在写的博客保存到服务器草稿箱,即使换浏览器或者清除缓存,内容也不会丢失。

注意:虽然浏览器存储大部分时候都比较可靠,但为了您的数据安全,在联网后,请务必及时发表或者保存到服务器草稿箱

浏览器兼容

目前,本编辑器对Chrome浏览器支持最为完整。建议大家使用较新版本的Chrome。

IE9以下不支持

IE9,10,11存在以下问题

不支持离线功能

IE9不支持文件导入导出

IE10不支持拖拽文件导入

这里是 脚注 的 内容.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  emacs windows spacemacs