From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sanjeev Sariya Newsgroups: gmane.emacs.help Subject: Disable warning from irony for PHP files Date: Wed, 14 Oct 2015 07:40:48 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1444833972 21005 80.91.229.3 (14 Oct 2015 14:46:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 14:46:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 14 16:46:09 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmNJc-0001aI-5R for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Oct 2015 16:46:04 +0200 Original-Received: from localhost ([::1]:42827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmNJb-0002nD-Cs for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Oct 2015 10:46:03 -0400 X-Received: by 10.31.15.16 with SMTP id 16mr2913845vkp.0.1444833648688; Wed, 14 Oct 2015 07:40:48 -0700 (PDT) X-Received: by 10.50.131.162 with SMTP id on2mr69604igb.4.1444833648613; Wed, 14 Oct 2015 07:40:48 -0700 (PDT) Original-Path: usenet.stanford.edu!z77no9565803qge.1!news-out.google.com!z4ni20817ign.0!nntp.google.com!kq10no18491925igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=128.164.103.13; posting-account=3hywiQoAAAC7qRM75dhCGL6Nt6I-WinJ Original-NNTP-Posting-Host: 128.164.103.13 User-Agent: G2/1.0 Injection-Date: Wed, 14 Oct 2015 14:40:48 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215353 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107637 Archived-At: 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