[OS X Emacs] Modes don't start as default for html files

Eduardo San Miguel eduardo at simplej.com
Mon Apr 6 19:40:32 EDT 2015


Greetings everyone,

I can't get Aquamacs to start by default with a mode I installed (web-mode
to be precise). I have asked in stackoverflow and was recommended to post
to this mailing list:

Here's the link for StackOverflow

http://stackoverflow.com/questions/28861738/web-mode-wont-start-automatically-in-aquamacs

There is also a question asked here:

http://stackoverflow.com/questions/23682845/emacs-aquamacs-web-mode-not-automatically-activating-for-html-files

I install all modes through Melpa.

Also I have noticed that web-mode works only when creating a new html file.

Also, for example, the (global-auto-complete-mode t) doesn't seem to work
either. Though I don't know if this is unrelated to the web-mode scenario.

My ~/.emacs file is empty.

Here is my Preferences.el file:

;; This is the Aquamacs Preferences file.
;; Add Emacs-Lisp code here that should be executed whenever
;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop
;; evaluating this file and print errors in the *Messags* buffer.
;; Use this file in place of ~/.emacs (which is loaded as well.)

;; Melpa
(require 'auto-complete)
(global-auto-complete-mode t)

(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/
")))
(package-initialize) ;; You might already have this line

(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.html$" . web-mode))


I'm using OS X 10.9.5

Cheers,

Eduardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20150406/eca1a8a8/attachment.html>


More information about the MacOSX-Emacs mailing list