From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?7KGw7ISx67mI?= Newsgroups: gmane.emacs.help Subject: Re: How can i enable webmode? Date: Mon, 11 May 2020 00:35:46 +0900 Message-ID: <88F78EB6-37EE-4173-8E4D-8602ABDBB434@icloud.com> References: <20200510130522.486e3497@jcubic> <7cff7a4e-391f-3db4-e49a-6e52408d9b17@posteo.net> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8; delsp=yes; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43636"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jakub Jankiewicz , Help Gnu Emacs mailing list To: aprekates Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 10 17:36:44 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXo0S-000BGn-7s for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 May 2020 17:36:44 +0200 Original-Received: from localhost ([::1]:55936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXo0Q-0006cG-8V for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 May 2020 11:36:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXnze-0006bC-P6 for help-gnu-emacs@gnu.org; Sun, 10 May 2020 11:35:54 -0400 Original-Received: from pv50p00im-ztdg10012001.me.com ([17.58.6.51]:41974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXnzd-0005vf-Kj for help-gnu-emacs@gnu.org; Sun, 10 May 2020 11:35:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1589124951; bh=mUB2fct7XqjAVw9MRGMt48K1qtgHfrw920dX49S8rWs=; h=Content-Type:Subject:From:Date:Message-Id:To; b=BMc/IKLc3OOCFvvcxRRBAYrspIsiEHUAMkSDpU9ktwpHCohl29Em4rJTjz89hFc6o FdROQRe/hleIowW73oAuap1ZyW5Z4NIEVs10Q3ptvsZU/UQnJEuQ1xUOZ/mfNEzX6y YOUcnbPHTFr8ds1nfTQCm0385vbK96uKfPMi3pj5/hQr0ypPjZwktrvCPBeqg+QZqL trCcInphIU42RuRsJhHhBYRJrrxLkY9ujsrEUbNOv4tQuq9t4Hd4xCXpmtfVrmWKGa 6pjOJxsnu+L96D6NI11l3R7xoq4EckBZU80EEHdL1SpCHtauBHgr2zk+Po4UcxnA8N TBPcMM7/KWILw== Original-Received: from [192.168.0.2] (unknown [1.230.108.64]) by pv50p00im-ztdg10012001.me.com (Postfix) with ESMTPSA id 35322280590; Sun, 10 May 2020 15:35:49 +0000 (UTC) In-Reply-To: <7cff7a4e-391f-3db4-e49a-6e52408d9b17@posteo.net> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-10_07:2020-05-08, 2020-05-10 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=260 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2005100145 Received-SPF: pass client-ip=17.58.6.51; envelope-from=pcr910303@icloud.com; helo=pv50p00im-ztdg10012001.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/10 11:35:51 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123057 Archived-At: aprekates 작성: > Thanks , i had the impression that package manager would handle that. The package manager only ‘installs’ the elisp files. > I wonder , is that step a webmode exception or > a necessary step after an 'installation' of every package? Usually (almost always), you have to add some code to your init file to trigger it. For major modes, it’s usually adding it to auto-mode-alist. For minor modes, you would have to activate the minor modes if you would want them to be turned on from startup, and for ones that you would only like to be turned on for some major modes, you add a major mode hook to turn the minor mode on. > On 10/5/20 2:05 μ.μ., Jakub Jankiewicz wrote: >> On Sun, 10 May 2020 13:02:14 +0300 >> aprekates wrote: >> >>> GNU Emacs 26.1 (build 2, x86_64-pc-linux-gn >>> >>> I installed with M-x package-list webmode but >>> >>> html files still open in html+ mode. >> You need to actually tell emacs to use web-mode for html files. >> >> I have this in my emacs file: >> >> (require 'web-mode) >> >> (add-to-list 'auto-mode-alist >> ("\\.\\(php\\|php\\.in\\|xml\\|twig\\|rss\\|xsl\\|svg\\|glade\\|rng\\|kml\\|html\\|xhtml\\)\\'" >> . web-mode)) >> >> -- >> Jakub Jankiewicz, Web Developer >> https://jcubic.pl/me