From: Sanjeev Sariya <sanjeevsariya@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Disable warning from irony for PHP files
Date: Wed, 14 Oct 2015 07:40:48 -0700 (PDT) [thread overview]
Message-ID: <dba8b02f-5801-4d92-81b7-e81b34ee6102@googlegroups.com> (raw)
Hi Emacs Community,
Version: GNU Emacs 24.5.1
Please bear with me, I'm a learner on how to enable and play around config file in emacs for different languages.
I've installed package for php : php-mode
For which the config file looks:
(require 'php-mode)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
I've irony, and company-irony mode added in my init.el, for which init.el looks like:
(eval-after-load 'company
'(add-to-list 'company-backends 'company-irony))
(require 'irony)
(add-hook 'after-init-hook #'global-company-mode)
(add-hook 'c++-mode-hook 'irony-mode)
(add-hook 'c-mode-hook 'irony-mode)
When I open alpha.php, I get following warning:
Warning (irony): Major mode is unknown to Irony, see `irony-supported-major-modes'.
I know irony doesn't support php file. How can I disable irony to work while working with .php or any other language, or say restrict it to c, cpp, .h, .hpp files?
Any guidance shall be highly appreciated
next reply other threads:[~2015-10-14 14:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 14:40 Sanjeev Sariya [this message]
2015-10-14 19:51 ` Disable warning from irony for PHP files John Mastro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dba8b02f-5801-4d92-81b7-e81b34ee6102@googlegroups.com \
--to=sanjeevsariya@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.