Nickael / emacs.dotfile

Little preconfigured emacs dotfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started

Prerequisites

To use this configuration correctly, you need to install this cli programms gcc, cmake, clang, python, pip, powerline, cpplint, php-cli, phpcs, nodejs, npm, jslint

Getting GCC

To make sure you do not have any problems using auto-complete for C/C++ you will need to install GCC and CMAKE, you will need to provide some information inside the .emacs files.

$ sudo apt-get install -y gcc

or

# yum install gcc

more information here

Geting cmake

$ sudo apt-get install -y cmake

or

# yum install cmake

More information here

Getting and cpplint with pip pakage manager

To get a good result of C/C++ mode you will need the to install CPPLINT. Its C/C++ linter

First you will need to install Python. Check it there Then install pip packagage manager here

You can now proceed to the installation of cpplint

$ sudo pip install --global cpplint

Getting PHP

To use emacs flymake-php linter, you will need to install PHPCS. I'm currently using PSR-2 normes but you can change is it please to you.

If you want to install it manually, may you have a good luck, check it there ^_^

else juste do (I'm using PHP5.6 by the way)

$ sudo apt-get update && sudo apt-get install -y php5-cli

or

# yum install php5-cli

Then

$ sudo apt-get install -y php-codesniffer

or

# yum install php-codesniffer

Install NodeJS - NPM and jslint

To use flymake-jslint for NodeJS or Javascript linter you will need to install these package named in the subtitles before. Check your system requirement there

Then install jslint globally

$ sudo npm install --global jslint

Good to know

Getting powerline fonts

Make sure you change you shell default font to powerline fonts. Get all of them here

Basic installation

Via curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Nickael/emacs.dotfile/master/install.sh)"

Via wget

sh -c "$(wget https://raw.githubusercontent.com/Nickael/emacs.dotfile/master/install.sh -O -)"

IMPORTANT

  • You must not forget to add the c-headers path in the .emacs file
  • Change these line shell (setq login "rakoto_n") , shell (setq name "RAKOTONINDRINA Nickaël") in .emacs.d/std_comment as your heart content I'm using this for my school.
  • Other thing to do, got to line number 36 then change the domaine name to yours, mine is for my school so be it.

Good luck and enjoy

About

Little preconfigured emacs dotfile

License:MIT License


Languages

Language:Emacs Lisp 86.2%Language:Shell 13.8%