LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-10-2009, 08:35 PM   #1
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Unhappy Automatic hs-minor-mode in Emacs for PHP mode?


Hi. I'm running emacs22-nox on a Debian Lenny box. I used this code from http://www.emacswiki.org/emacs/HideShow in the .emacs file to get hs-minor-mode to start automatically:

Code:
(global-set-key (kbd "C-+") 'toggle-hiding)
(global-set-key (kbd "C-\\") 'toggle-selective-display)

(add-hook 'c-mode-common-hook   'hs-minor-mode)
(add-hook 'emacs-lisp-mode-hook 'hs-minor-mode)
(add-hook 'java-mode-hook       'hs-minor-mode)
(add-hook 'lisp-mode-hook       'hs-minor-mode)
(add-hook 'perl-mode-hook       'hs-minor-mode)
(add-hook 'sh-mode-hook         'hs-minor-mode)
However, hs-minor-mode does not start automatically when I open a PHP file. (PHP-mode does open automatically).

I thought, of course, to try

Code:
(add-hook 'php-mode-hook         'hs-minor-mode)
But that didn't work. Can someone tell me the correct syntax?
 
Old 06-12-2009, 09:38 AM   #2
burschik
Member
 
Registered: Jul 2008
Posts: 159

Rep: Reputation: 31
Works for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Emacs PHP mode? CoderMan Debian 3 07-14-2009 02:47 PM
Emacs: Enable minor mode in all buffers nb85 Programming 2 04-13-2009 03:56 PM
emacs: continuous newline (minor mode?) tek1024 Linux - Software 1 08-11-2004 02:09 PM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM
emacs-21.2 php-mode.el howto ? cicisbeo Linux - Software 1 01-12-2004 08:26 PM


All times are GMT -5. The time now is 11:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration