From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Keybinding to change Major Mode according to file type Date: Mon, 21 Sep 2020 09:42:37 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17541"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 09:45:31 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 1kKGVu-0004SA-PY for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 09:45:30 +0200 Original-Received: from localhost ([::1]:57422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKGVt-0004OG-Hk for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 03:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKGTB-0004Nx-Vg for help-gnu-emacs@gnu.org; Mon, 21 Sep 2020 03:42:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:59485) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKGTA-0003tN-1J for help-gnu-emacs@gnu.org; Mon, 21 Sep 2020 03:42:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600674157; bh=Vwk7LLUAqVKSro17STLZ4dI8/KDfdt7eFU/cnlUsZs8=; h=X-UI-Sender-Class:From:To:Subject:Date; b=HSbaJr4ubAZMtyvRufm+0TJwkSTOA5nH5SdJ7LlFZ+xPWXCJPGUtt9UIUXG2QGaeH OzlPTj58ncJD3vPKbC3f6bHv2SGSIVeWdp2vIhsyBksJidYKYthvBmfATxb5v4lqoO MtxRkSHQ0jm7NsvNMfBxwybf2KV/bo3wWZML3gzI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Mon, 21 Sep 2020 09:42:37 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:0FxqTzYWHu6cVm9RV3wsZciFVnmzxrN1TmGCSmIVaHMQQ5YMQQSVrX3IQ7yvIY7KVMHFK x+mNtupm8gLHkxmyN3sn1fuiX59o0Bmj+yRjKU9d0pCv45pgVzr0Zp55eGaNbMmBTd10miTEpLov Oxu97BEA38tcUD/bfqBOyrHgwh46XTunR3kkiu0Zt2fsd6sE85hjIXWRI7ejKHSlULr6OsnEG6Rv aA02bh6XZFrtW0yZt4cUtog0wrEkjd39Fxv0OxaDe2h8jLC06CKuL7FQD+4uIPjo08CLo0EOn2Nn 2A= X-UI-Out-Filterresults: notjunk:1;V03:K0:NoX+/6kV0wY=:Dyu/U/k9QfJQmec81+G+1V WOjAsIUoP4Cu/zSiHxUdEMGJEnEOyFGwJNhKBXC2XrgF1HCzYG3DPfLb3/HncC2bj7zG4ljt2 RtMxT1qpENLJfurYjIBPylqeH7M8upmPowftGl5f+TTKvSlrS1K7ksfQOz/4xMv0iAZRs8zw3 96iuiO7ysguv2RG+z1Lol/MY1/hDps2x8HZIca3PZE0m4DVtFtOpGYVtAN2M+FOI4uaHFSckF NFGxtpMvapF4aMrDAzvboNkGRVIXUnVN/t/ESn1HyTJxuIQEKAqP5QSq6FpyxVAak3BBSocnV rATaMVCnJh0OkM+4LgFdJxZjHX9VWH248TlPsvInNr2nfjyYQkaAW3cNGEoR2FUK8QLRC8kSo biLP9Bfcm10B3ewc5d4JMOvVcjb2vy5hSAueB28CSPL/j7kr55NRDC5kU3KID99LIL+gvtfyK UFGLL5xmd6bsMr4+JqJteZ1rqCjh7xOazltL15cpX7IVEAxjmwUbCyc+jCKqRP/ZjpvQ/ROGw h4y9opoY0LFDX630fsAo2ouEC1HJy2W3OXK3Bfr7Kn4DwRJWHtEBGlb1WJ2ACnRlGyBx2/os9 qkWesMC2KeAiaKJ8bO/a/TWKNev0rULMr+IWkeS+Ocpq5KPz2lXQrQm/yxcWdR/sgaLn8nx3/ o/nfW+NfqUu88l0IJt17qFMzHI7GQb3OViJcaI2L2jS9lJN4lzL9QMAU/fB+cFi8GQi8= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/21 03:42:38 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:124124 Archived-At: Can one use keybinding such as f2 loads the bluffer in Major Mode dependent on the file type. Example: If I have a .texi file in whicn I have changed the major mode with 'M-x org-mode' I want to press f2 to it will check the file, in my case .texi and change to major mode as though I keyed 'M-x texinfo-mode'