Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sr speedbar #3559

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions layers/+tools/sr-speedbar/README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#+TITLE: sr-speedbar contribution layer for Spacemacs

* Table of Contents :TOC@4:
- [[#description][Description]]
- [[#install][Install]]
- [[#usage][Usage]]
- [[#key-bindings][Key Bindings]]

* Description

sr-speedbar is mode make SpeedBar show in Current Frame.

* Install

To use this contribution add it to your =~/.spacemacs=

#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(sr-speedbar))
#+END_SRC

* Usage
* Key Bindings
| Key Binding | Description |
|-------------+------------------------------|
| ~SPC f t~ | Toggle sr-speedbar |
31 changes: 31 additions & 0 deletions layers/+tools/sr-speedbar/packages.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
;;; packages.el --- sr-speedbar Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: wsk <tshemeng@live.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(setq sr-speedbar-packages
'(sr-speedbar))

(defun sr-speedbar/post-init-sr-speedbar ()
(defun spacemacs/sr-speedbar-show-or-hide ()
(interactive)
(cond ((sr-speedbar-exist-p) (kill-buffer speedbar-buffer))
(t (sr-speedbar-open) (linum-mode -1) (speedbar-refresh)))))

(defun sr-speedbar/init-sr-speedbar ()
(use-package sr-speedbar
:init
(setq sr-speedbar-width 30)
(setq sr-speedbar-right-side nil)
:config
(evil-leader/set-key
"ft" 'spacemacs/sr-speedbar-show-or-hide)
(spacemacs|evilify-map speedbar-mode-map)))