Skip to content

Instantly share code, notes, and snippets.

@ANDRON94
Last active September 23, 2016 13:19
Show Gist options
  • Save ANDRON94/c707cb6c98404188900831a78f59396c to your computer and use it in GitHub Desktop.
Save ANDRON94/c707cb6c98404188900831a78f59396c to your computer and use it in GitHub Desktop.
Guide to setup Emacs as IDE
/* Mostly use this guide */
http://tuhdo.github.io/c-ide.html
/* Install latest Emacs */
// 1.Link
ftp://ftp.gnu.org/pub/gnu/emacs/
// 2.Build dependencies(Ubuntu/Debian???)
sudo apt-get build-dep emacs24
// 3. ./configure & make & sudo make install
/* Get config(emacs.d) */
git clone https://github.com/ANDRON94/emacs-setup.git .
/* Install GNU Global */
// 1. Install python
sudo apt-get install python
// 2. Install ctags
// 2.1 Link
http://ctags.sourceforge.net/
// 2.2 ./configure & make & sudo make install
// 3. Link
https://www.gnu.org/software/global/download.html
// 4. ./configure & make & sudo make install
// 5. Enable Pygments plugin(.bashrc)
export GTAGSCONF=/usr/local/share/gtags/gtags.conf
export GTAGSLABEL=pygments
// 6. Generate gtags for default external library
// 6.1. Export enviroment variable with location of gtags(.bashrc)
export GTAGSLIBPATH=$HOME/.gtags/
// 6.2 Generate database
mkdir ~/.gtags
ln -s <LIBRARY PATH1> <NAME>
ln -s <LIBRARY PATH2> <NAME>
gtags -c
/* Install helm and asynk from git */
// 1. Link
git clone https://github.com/emacs-helm/helm.git /path/to/helm/directory
git clone https://github.com/jwiegley/emacs-async.git /path/to/async/directory
// 2. Run 'make' in helm directory
/* Install CEDET */ //IT IS UNUSED IN MASTER BRANCH OF SETUP. BUT YOU CAN INSTALL IT ANYWHERE.
// 1. Link
git clone http://git.code.sf.net/p/cedet/git cedet
// 2. Run 'make' and 'cd contrib & make'
/* Install other required packages from MELPA */
// 1. For correctly using Irony need to specify compilation database:
irony-cdb-json-add-compile-commands-path - setup database
irony-cdb-menu - check database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment