Skip to content

Tree style source code viewer for Go language

Notifications You must be signed in to change notification settings

emacsorphanage/go-direx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-direx.el melpa badge melpa stable badge

Introduction

You can view go code in a tree style viewer with direx.el.

Screenshot

go-direx1

Requirements

You can install direx with package.el from MELPA. And you can install gotags by go get as below.

% go get -u github.com/jstemmer/gotags

Installation

go-direx is available on MELPA and MELPA stable

You can install go-direx with the following command.

M-x package-install [RET] go-direx [RET]

Setup

(require 'go-direx) ;; Don't need to require, if you install by package.el
(define-key go-mode-map (kbd "C-c C-j") 'go-direx-pop-to-buffer)

Working with popwin

(require 'popwin)
(setq display-buffer-function 'popwin:display-buffer)

(push '("^\*go-direx:" :regexp t :position left :width 0.4 :dedicated t :stick t)
      popwin:special-display-config)

Show buffer on right side

go-direx2

(push '("^\*go-direx:" :regexp t :position right :width 0.4 :dedicated t :stick t)
      popwin:special-display-config)