What is the easiest way to install web-mode on spacemacs? - emacs

I am a emacs beginner.
I already setup spacemacs on emacs.
I need syntax highlighting for laravel blade template.
How should I do?

You could just add html layer into your dotspacemacs-configuration-layers list.
And web-mode will be configured properly for you.

Related

Emacs - Clojure function highlighting (i.e. map, reduce, println, get, etc.)

I am currently using emacs24 with clojure-mode as my clojure IDE. I use the zenburn theme.
As far as I can tell, clojure-mode only provides syntax-highlighting for macros. Is there a way to add syntax highlighting for all clojure native functions?
I've googled a bit and it seems like I'm either the only one who wants this, or the only one that doesn't have it for some strange reason. I don't think my .emacs file is a necessary addition to this question but I'll add it if someone wants to take a look.
Thank you.
You need to explicitly enable font locking for these functions with clojure-mode-extra-font-locking. Install this package from MELPA, and add the following to your init.el:
(eval-after-load 'clojure-mode '(require 'clojure-mode-extra-font-locking))

CEDET in emacs (command line mode)

I'm trying to setup and android development on my mac using Emacs and CEDET (I hate Eclipse, and I want to keep using emacs, but I want the auto-completion, so this setup seemed perfect).
However, I want to use emacs in the terminal. I have a problem with the auto-completion. CEDET is trying to use the graphical menu "popup-menu" and I got an error in CLI mode: "Symbol's function definition is void: popup-menu", which makes perfect sense.
My question is, is there any way to use Emacs' termcap menu for CEDET auto-completion?
Thanks!
Thibault.
Edit: you can find my emacs configuration there: https://github.com/tbronchain/emacs
Edit2: here are some screenshots showing 1- What is the CEDET auto-completion in GUI mode 2- the menu I would like to use for CEDET in CLI mode
CEDET = http://bit.ly/1iptfq3
auto-complete = http://bit.ly/1kZVDz9
I got my answer!
I didn't succeed to replace the menu by auto-complete, however, it works perfectly with company! It is a little bit more messy than the GUI menu, but it's still awesome!
Thanks to #Stefan for helping with this!
I will post my full configuration on github when I'll be done with this configuration (I'm trying to optimise the keyboard shortcuts a bit).
Cheers,

Enabling ruby syntax highlighting for Emacs html.erb files

I am running Emacs Live with Rinari. In .erb files html-mode is enabled automatically, however embedded Ruby is not highlighted according to ruby-mode. Is there any way to enable both html-mode and ruby-mode within .html.erb files?
Check out web-mode, which is designed for HTML templating. It can be installed via MELPA or Marmalade. (Note that this is not a way to run html-mode and ruby-mode simultaneously as you requested; it's a completely different mode. It's also probably your best bet.)
Out of the box, it supports .html.erb (and many others), with superficial CSS and JavaScript support (highlighting and indenting).
Install 'rinari' for emacs which is specially for ROR. It has a mode called eruby-nxhtml-mumamo-mode which hightlights the html.erb syntax as we need. This link will help you how to install it. It takes care of everything. Enjoy!

Change Emacs modes within specific tags

OK, I know you're going to point me to EmacsWiki page, but here's the deal. I'd like to use the default Emacs mode for a given file type, and change mode after specific tag, say <% %>. By doing such, I can switch the mode inside the tags, and return to default mode when cursor is not inside tags.
And no, I don't need ASP/PHP mode, it just that I find boring M-x-ing all the time in order to change the mode. I'm using Emacs 23.2.1 on Arch Linux FWIW. Any ideas?
Have a look at mmm-mode: http://sourceforge.net/projects/mmm-mode/ or noweb-mode. Here are instructions for getting mmm-mode to work with literate Haskell documents. And here is the configuration I use for noweb-mode with literate (rst+python) Python documents.
nXhtml
nXhtml is an addon to Emacs for editing XHTML, PHP and similar things.
nXhtml comes with MuMaMo (Multiple Master Major Mode), which I think is a newer version of mmm-mode. I use it all the time when editing Django HTML files which combine CSS, JavaScript and Django-aware HTML modes.
Is it what are you looking for :
http://www.emacswiki.org/emacs/PhpMode#toc8
You probably want to adapt it to fit your need

Is there a mode for Visual Basic (VB6) in Emacs?

I would like to use Emacs to edit some VB6 files but Emacs does not appear to have any of built-in niceties of other languages such as syntax highlighting, etc.
Any plugins/extensions? What else can I do to make Emacs an acceptable and comfortable IDE for VB?
Visual Basic mode
http://www.emacswiki.org/cgi-bin/wiki/visual-basic-mode.el
edit: after installing this script (see script for instructions) syntax highlighting can be toggled via the options menu -- emacs calls it 'font-lock' :)
See these links:
xahlee.info
Emacs wiki
For VB.NET, there is also a VBNET mode.