首页 > 图中Emacs的左侧边栏是如何配置的?

图中Emacs的左侧边栏是如何配置的?

今天在找个插件的时候,看到了这篇文章:

http://blog.csdn.net/meteor1113/article/details/4349281

是介绍company-mode的,下面有一个作者的Emacs配置图,觉得挺强的,但不知道是如何配置的,使用了哪些插件,还麻烦大家指导下。

我自己的Emacs就这个样子的。界面上没有使用插件,连个Tabbar都没。

有兴趣的话,大家也可以分享下你们的Emacs界面。


你需要的是 sr-speedbar


我的是这个配置, 不一定对, 我不开发python, 你上面的的都 是过时的。

;; # Either of these rope--slow maybe use to refactor,so select jdei
;; pip install rope
;; pip install jedi
;; # flake8 for code checks Python代码规范利器Flake8
;; pip install flake8
;; # importmagic for automatic imports
;; pip install importmagic
;; # and autopep8 for automatic PEP8 formatting
;; pip install autopep8
;; # and yapf for code formatting
;; pip install yapf

;;  i have four way:
;; 1.elpy       Emacs Python Development Environment
;; 2.anaconda-mode company-anaconda
;; 3.company-jdei
;; 4.ycmd


(use-package elpy
  :ensure t
  :defer t
  )

(use-package python
  :defer t
  :mode ("\\.py\\'" . python-mode)
  :interpreter ("python" . python-mode)
  :config
  ;; run command `pip install jedi flake8 importmagic` in shell,
  ;; or just check https://github.com/jorgenschaefer/elpy
  (elpy-enable)

  ;; http://emacs.stackexchange.com/questions/3322/python-auto-indent-problem/3338#3338
  ;; emacs 24.4 only
  (setq electric-indent-chars (delq ?: electric-indent-chars))

  )
;; (let ((envdir (getenv "ENVDIR")))
;;   (setq python-shell-virtualenv-path envdir))

(use-package pip-requirements
  :ensure t
  :defer t
  :mode ("\\.pip\\'" . pip-requirements-mode)
  )

(provide 'init-python)

ECB,不过个人不喜


安装ECB就可以达到类似的效果吧,把你的emacs变成一个类似IDE的东东~

例图


这么用Emacs好蛋疼,不如用开源IDE...

【热门文章】
【热门文章】