Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic emacs setup to replace Eclipse IDE

Preface:

I expect that you already have a working emacs environment and want to try out another setup.

Details:

This projects provides a default bootstrap of emacs configuration that gives most of the most important features that the Eclipse IDE has:

  • directory tree
  • mouse actions, such as scrolling, resizing of windows, text selection, window selection, cursor placing
  • quick class file navigation using etags
  • fuzzy file name matching for C-x C-f to avoid having to type in full file path to get to a file
  • etags to jump to definition of Scala object/class/trait
  • color theme : zenburn
  • a useful grep-find that ignores directories that you are not likely to ever search

How to:

  • Install ctags

    brew install ctags

  • Create etags in scala project root directory:

    find . -name '*.scala' | xargs etags -r ~/.emacs.d/ctags -a {} ;

  • add ensime support for scala project

    sbt "ensime generate"

  • Run 'emacs' in the directory of your scala project.

  • Once emacs is running, type the following to load plugins:

    M-x ensime RET

    M-x dirtree RET

  • dedicate the dirtree window

    C-c l

  • Use eTags to jump to definition by placing cursor on Trait/Class/Object and typing:

    M-.

  • Use grep-find command to search for text in files

    M-x grep-find RET

References:

About

My attempt to switch from eclipse to emacs.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages