Giter Site home page Giter Site logo

spacemacs-private's Introduction

My personal Emacs configuration

Hacking journey begins start from 2013.

It was written for Emacs 25.1+ on MacOS 10.11+

How to use

Follow the install instruction here: https://github.com/zilongshanren/spacemacs#install , make sure your are using the fork repo: https://github.com/zilongshanren/spacemacs

Why use the forked repo? What’s the difference between the forked repo and the original repo?

Nothing difference!

The forked version is only a few commits behind the original repo, becuase sometimes the original repo can’t functional well.

What’s the highlight of this configuration

  1. It’s a highly optimized Spacemacs configuration, you should use the configuration together with the develop branch of the forked Spacemacs.
  2. I prefer to the Ivy completion interface, so I removed many helm related packages but keep the helm-ag package. The counsel-ag counterpart is not powerful as helm-ag.
  3. I also removed some packages I don’t have any chance to use. The complete list lies in the exclude section of the init.el file.
  4. I also exclude the Spaceline package, cause it’s easy to frozen the Emacs with this package enabled. So I create my own mode line configuration based on Spaceline.
  5. The Swiper package sometimes frozen the Emacs UI when you split the window with very long lines. You could use `pkill -SIGUSR2 -i emacs` in command line to save the frozen Emacs.

Optional

Install Imagemagick

Happing Hacking

spacemacs-private's People

Contributors

bennyyip avatar xcodebuild avatar zilongshanren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spacemacs-private's Issues

当前文件下自动补全如何关闭?

对于写代码来说,自动补全很方便;可有时候要写一些东西,比如博客之类,输着单词就出现补全框,很打扰思路,这时候有没有办法临时关闭自动补全,比如直接按某些键?

Font not available ...

山人你好。
我安装好你的配置后报错

(Spacemacs) Error in dotspacemacs/user-config: Font not available: #<font-spec nil nil Source\ Code\ Pro nil nil nil nil nil 14 nil nil nil ((:name . "Source Code Pro:pixelsize=14") (user-spec . "Source Code Pro:pixelsize=14"))>

我已经在系统上安装了 Source Code Pro字体
Emacs版本为24.5.1,spacemacs版本为0.105.1

是否考虑加csharp的layer吗?

查找了一下c#的emacs相关支持,使用ominisharp是一个方案,是否能考虑加入?
spacemacs本身也有csharp版本,也是需要Omnisharp server
有想法使用emacs作为editor

zilongshanren/markdown-to-html 没有指定端口

        (defun zilongshanren/markdown-to-html ()
          (interactive)
          (start-process "grip" "*gfm-to-html*" "grip" (buffer-file-name))
          (browse-url (format "http://localhost:5000/%s.%s" (file-name-base) (file-name-extension (buffer-file-name)))))

grip 需要指定5000端口

(defun zilongshanren/markdown-to-html ()
          (interactive)
          (start-process "grip" "*gfm-to-html*" "grip" (buffer-file-name) "5000")
          (browse-url (format "http://localhost:5000/%s.%s" (file-name-base) (file-name-extension (buffer-file-name)))))

关于按键绑定的一个问题

山人你好,你在keybinding.el里写
(global-set-key (kbd "s-s") 'save-buffer)
(bind-key* "s-k" 'scroll-other-window-down)
(bind-key* "s-j" 'scroll-other-window)
请问s-s s-k s-j该怎么按?是字母s加字母s还是shift加字母s,但我在normal模式下试了两种都不行,所以很奇怪。

按照你的配置安装方法,好像没起作用啊?

clone spacemacs repo and use develop branch

git clone https://github.com/syl20bnr/spacemacs.git ~/.emacs.d
cd .emacs.d
git checkout --track origin/develop

clone zilongshanren layer and checkout develop branch

git clone https://github.com/zilongshanren/spacemacs-private.git ~/.spacemacs.d/
cd ~/.spacemacs.d/
git checkout --track origin/develop

按照这样操作,好似你的配置没载入,是我操作不对?
系统没提示错误。
系统什么时候读取 ~/.spacemacs.d/init.el? 读取这个文件的语句在哪里定义的?

spacemacs 初学者请教,谢谢。

pomodoro出现问题

RT,当我使用pomodoro的时候,显示gntp was not provided,这个是什么原因?

显示persp-mode错误

zilongshanren 好,请教个问题:
我按照你的说明进行配置,显示下面的错误:
Error (use-package): persp-mode :init: Symbol's function definition is void: persp-mode
不知道是怎么回事,帮忙解答一下吧。谢谢!
另外,那个slack需要翻墙吗?我加不上去啊?

fasd error

fasd executable cannot be found. it is required by 'fasd.el'. cannot add file/directory to the fasd db.

是什么原因,怎么解决呢?

谢谢。

evil的visual模式下插入列失败

你好. 我安装了你的配置后,evil的visual模式下标记column之后进行列插入失败.请问是不是跟你所使用的某个包冲突了?

不可见字符的显示问题

你好,我在windows下使用您的配置,emacs版本为25.0.92, spacemacs版本为0.105.14.
在使用过程中,发现一些不可见字符会显示出来。如下图所示:
image
image
在使用您的配置之前是没有这个问题的, 在网上也没有找到相关的资料,请问该如何不显示这些隐藏字符(如图中的tab键,^M等)?

emacsclient没有加载中文字体设置

为了得到更快的启动速度,我打开了spacemacs的后台服务器,即在.spacemacs文件中设置

dotspacemacs-persistent-server t

然后按照chinese layer的readme, 在.spacemacs文件中 dotspacemacs/user-config ()这一段里加入

(spacemacs//set-monospaced-font "Source Code Pro" "Droid Sans Fallback" 16 20)

在terminal中用emacs启动中文字体没有问题
但使用emacsclient打开文件时中文字体变成了ubuntu默认的ukai
请问如何设置能够解决这个问题

谢谢!

c++ company 后端

山人你好,我看到你把ycmd的layer注释掉了,所以想请问一下你现在写c++代码时使用的company后端是什么?这样做有什么好处?

is it a typo ?

in line 191
(defun zilongshanren/post-init-ycmd ()
(setq ycmd-tag-files 'atuo))

atuo is auto, right?

c++ 配置

我是昨天emacs群里 宁静的语言
c++配置里semantic部分用处是什么?
post init company 从comapny-backends里删除了semantic-backend了,这个配置的用处是?

配置不生效

您好,我按着您的README操作,然后看您的视频教程,发现您的视频里面的有的操作,配置里面并没有,比如再finder里面打开文件、还有最后说的那个代替tree的功能.

請教 ace-pinyin 的用法

我最近也改到 spacemacs 的 develop 分支了,但是發現 ace-pinyin 不聽使喚了。
以前的配置是這麼寫的:

 (define-key evil-normal-state-map (kbd ", SPC") 'ace-jump-char-mode)

(我本想綁定到 SPC SPC,但是沒成功。)

現在依然是 chinese layer 的參數,包含 chinese-enable-avy-pinyin t ,user-config 裏面的還按照以前的失效了,改成 avy-goto-char 等等都無效。
在您的這份 spacemacs-private 裏我沒找到有關 ace/avy 的配置和 key-binding,請教把 ace-pinyin 單獨拿出來用,該如何執行?

考虑我单独维护一份Chinese layer

因为我给Spacemacs官方提PR的处理速度比较慢,我想自己维护一个chinese layer,不过由于layer名字不能重复,大家觉得 chinese-extra这个名字怎么样,专门用来存放Spacemacs还没有收录的特性。
而且这个chinese-extra layer也可以添加更多的与中文相关的功能。

"chinese layer" and "git 依赖"

子龙山人好:
在使用你的配置时,出现了点问题,请教一下。我自己在网上找了一个五笔的字体库,替换掉原来有wb.txt,可以用,但是有个别字打不出来,不知道是什么原因。
另外,陈斌的配置里有个特点是:去掉了git依赖,不知道在spacsmecs里如何实现这个功能,还请赐教。
谢谢!

lxeg0429

配置报错,以下错误是不是导致org字体有点小得原因?

An error occurred while post-configuring org in layer zilongshanren (error: (invalid-function org-babel-header-args-safe-fn))
Error in dotspacemacs/user-config: Font not available: #<font-spec nil nil Source\ Code\ Pro nil nil nil nil nil 14 nil nil nil ((:name . "Source Code Pro:pixelsize=14") (user-spec . "Source Code Pro:pixelsize=14"))>

自动纠正;的位置

你好,我在youtube看到你的一期视频里面,当你在代码结尾)之前敲入;, emacs可以自动更正;的位置,请问这个是怎么实现的?我在你的emacs配置里没有找到相关信息。

例: |是光标的位置
当我在光标处敲;

call('some value'|)

自动更正为:

call('some value');

谢谢

关于一些字体

guanghui/packages.el里语句:
setq org-bullets-bullet-list
org-pomodoro-short-break-finished-hook
用到的一些符号"🐉" "🐠" "🐬" "🐤" "🐝" "💪"来自于什么字体文件?
snap1
变成这样了。

为什么我用到python的mode就会去连个网,弹出一个anaconda-response?

TTP/1.1 200 OK
Server: nginx
Date: Thu, 04 Feb 2016 01:58:13 GMT
Content-Type: text/html
Content-Length: 686
Last-Modified: Fri, 20 Mar 2015 05:09:51 GMT
Connection: keep-alive
ETag: "550bab9f-2ae"
Accept-Ranges: bytes

<script type="text/javascript"> var sa = "http://202.102.110.207:8080/"; var pp = "108&pre="+(new Date()).getTime(); var s=String(window.location.href); var host=escape(s.substring(7,s.indexOf('/',7))); var ref=escape(document.referrer); var su = s+"&host="+host+"&refer="+ref+"&server="+pp; s = escape(s); function loadfr(){ document.getElementById("fr1").src = sa+"3.htm?AIMT="+su; } function refreshPage(){ document.location = sa+"2.htm?AIMT="+su; } if (self.location == top.location){ document.location= sa+"1.htm?AIMT="+su; } else { refreshPage(); }</script>

使用您的spacemacs-private 无法启动

Warning (initialization): An error occurred while loading `/Users/maozhiyong/.emacs.d/init.el':

Args out of range: #, 131585, 156647

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.

字符显示的问题

你好

这一行中的图标字符在我的emacs中不能显示.

  (setq org-bullets-bullet-list '("🐉" "🐠" "🐬" "🐤")))

请问你是用了什么特殊设置把它们显示出来的?还是说你的emacs自动就能显示这些字符?

如何禁用pangu-spacing?

您好,我是emacs初学者,部分使用了您的配置。不喜欢pangu-spacing,不知道如何禁用。

子龙,问一下,我用了你的layer之后,出现下面错误,我刚开始用emacs,找了一下没找到错误,能帮忙看一下吗

(Spacemacs) Warning: Auto-evilication could not remap these functions in map `dired-mode-map':

  • dired-do-chgrp' originally mapped onG'
    (Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
  • org-agenda-next-line' originally mapped onC-n'
    (Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
  • org-agenda-toggle-time-grid' originally mapped onG'
    (Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
  • org-agenda-filter-remove-all' originally mapped on|'
    (Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
  • org-agenda-filter-by-tag-refine' originally mapped on'
    Starting new Ispell process /usr/bin/aspell with default dictionary...

去除跳转效果的问题

请教一下怎么除去下面这种跳转后有一个白色渐变然后消失的效果呢?
初看挺好玩,久了实在是眼花并且影响注意力。
文档里一直没有找到相关配置。。。

test

org-mode导出pdf是没有反应

山人你好,将org导出为pdf时_Message_里显示
“Wrote /root/org-notes/gtd.tex
Processing LaTeX file ./gtd.tex...
(Shell command succeeded with no output)
org-latex-compile: PDF file ./gtd.pdf wasn't produced”
然后并没有导出,我是linux系统装了texlive,然后按照你配置里导出中文pdf注释里的网站http://freizl.github.io/posts/tech/2012-04-06-export-orgmode-file-in-Chinese.html (作者已经改了博客结构,直接按着个网址站不到文章的,现在是 http://freizl.github.io/posts/2012-04-06-export-orgmode-file-in-Chinese.html 这个网址)装了latex-cjk-chinese,texlive-xetex,在org开头也加了

+LaTeX_HEADER: \usepackage{CJK}

+LaTeX_HEADER: \begin{CJK}{UTF8}{gbsn}

然而还是导不出pdf,google了半天也不能解决,所以特来请教该如何将org导出为pdf,如果有时间的话请讲的详细点,万分感谢!

remap warnings ...

山人你好

安装好你的配置后有以下 warning

(Spacemacs) Warning: Auto-evilication could not remap these functions in map `dired-mode-map':
   - `dired-do-chgrp' originally mapped on `G'
Loading /Users/xieyiming/.emacs.d/.litable-lists.el (source)...
Loading /Users/xieyiming/.emacs.d/.litable-lists.el (source)...done
which-key: changing M-m ms name from repl to REPL in the prefix-name-js2-mode alist
which-key: changing SPC ms name from repl to REPL in the prefix-name-js2-mode alist
which-key: changing , s name from repl to REPL in the prefix-name-js2-mode alist
which-key: changing C-M-m s name from repl to REPL in the prefix-name-js2-mode alist
(Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
   - `org-agenda-next-line' originally mapped on `C-n'
(Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
   - `org-agenda-toggle-time-grid' originally mapped on `G'
(Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
   - `org-agenda-filter-remove-all' originally mapped on `|'
(Spacemacs) Warning: Auto-evilication could not remap these functions in map `org-agenda-mode-map':
   - `org-agenda-filter-by-tag-refine' originally mapped on `\'
~/.emacs.d/elpa/visual-regexp-steroids-20150411.416/visual-regexp-steroids.elc:Warning:
    reference to free variable `regexp-string'
~/.emacs.d/elpa/visual-regexp-steroids-20150411.416/visual-regexp-steroids.elc:Warning:
    reference to free variable `replace-string'
Truncate long lines enabled

Emacs版本为24.5.1,spacemacs版本为0.105.1

使用 shadowsocks 代理来更新package

在 dotspacemacs/user-init 里面添加

(setq socks-server '("Default server" "127.0.0.1" 1080 5))
 (setq url-gateway-method 'socks)

但是开启之后 anaconda-mode 补全会失败。

需要定义一个 minor-mode,然后可以 toggle.

support react develop in web-mode ?

山人你好,现在的配置似乎不支持 react.js( jsx语法 ) 的开发:

spacemacs:
image

我按照这个方法进行设置,但总是报错,不知道加在哪里最合适呢?

我一直在用vim, vim 中显示没有问题:
image

与auto complete相关的错误

你好,我在装auto compelet时出现了以下错误
File mode specification error: (void-function yas--load-pending-jits)
yas-minor-mode: Symbol's function definition is void: yas--load-pending-jits
Error in post-command-hook (yas--post-command-handler): (void-function yas--post-command-handler)
Error in post-command-hook (yas-global-mode-check-buffers): (void-function yas--load-pending-jits)
请问这要怎么解决,谢谢

org-babel 的问题

zilongshanren 你好,
我使用您的配置 .spacemacs.d/ 和 org-babel 时,报错,如下:

Error in dotspacemacs/user-config: Invalid function: org-babel-header-args-safe-fn

我在 user-config 里加入了这些:

  (org-babel-do-load-languages
    'org-babel-load-languages
    '((C . t)
      (ditaa . t)
      (dot . t)
      (latex . t)
      (octave . t)
      (org . t)
      (perl . t)
      (python . t)
      (R . t)
      (ruby . t)
      (sh . t)
      (sqlite . t)
      ))
  (setq org-confirm-babel-evaluate nil)

并且在 configuration-layer 里加入了 ess(emacs speak statistics)

其他的只有行号的显示等改动,应该不影响。

spacemacs打开不了文件了

spacemacs打开不了文件了,今早.emacs.d 和.spacemacs.d 下git pull之后再打开spacemacs之后,想打开任何文件都打来不了。
searching for program:no such file or directory,fctix-remote

evilify error

今天搞备份,不小心把 .emacs.d .spacemacs.d 都清空了,所有设置都丢了,没办法重新再来。
(好在 spacemacs 也是前几天才装的)

装载你的spacemacs-private时出现 Symbol's function definition is void: evilify,

昨天安装你的配置时还没有这样的错误,今天不知怎么就有了,请问这是什么问题导致的呢??

谢谢。

gulpjs没有安装成功?

installing package: gulpjs@guanghui... [1/1]
An error occurred while installing gulpjs (error: (wrong-type-argument stringp nil))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.