From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: capitalised in 'abbrev_defs'? Date: Thu, 27 Jul 2017 12:43:54 +0000 Message-ID: References: <87r2x2qqj4.fsf@skimble.plus.com> <86eft2s3c0.fsf@zoho.com> <87h8xyqjn7.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1501159479 5568 195.159.176.226 (27 Jul 2017 12:44:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 12:44:39 +0000 (UTC) To: Sharon Kimble , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 27 14:44:30 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dai9W-0000uz-0D for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 14:44:30 +0200 Original-Received: from localhost ([::1]:42863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dai9a-00064f-Bx for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 08:44:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dai9C-00063j-1T for help-gnu-emacs@gnu.org; Thu, 27 Jul 2017 08:44:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dai9A-0007cn-QS for help-gnu-emacs@gnu.org; Thu, 27 Jul 2017 08:44:10 -0400 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dai9A-0007cX-EV for help-gnu-emacs@gnu.org; Thu, 27 Jul 2017 08:44:08 -0400 Original-Received: by mail-lf0-x236.google.com with SMTP id g25so75887159lfh.1 for ; Thu, 27 Jul 2017 05:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=OYhBn7mtcuUaCuqfohHTc4T4pPlm5m37H5N1O5/yGZI=; b=hdYRW0+DuOStsBImyhFngeT/1N6/x8FLjcdFRlSK/wRU1EvaNvY2kFNJMBBzEpatNM f+4ETXLlVILwW5iStctz8f34b/pCplmaFJtuSrl9QTGQdULUTYVFH+T1iKbpT8QU2lij vrs2uvwV2g6da/AI1iKFI50hEHGAmC7yRNsdQlzLdzOCkxCjL9vJpp3biUgjQRtvAaQ9 JTzifU8+NLWgiy3xku+wAVGC7CPneIJNcV/la3A166ASNSs5nF4ZkJ8iQX9Xq4nkqUwq lzBjXi7b2K462RvUS8ygs1eSwVMDVjSifPr9/MTwWLD53m4dSi6rKNzfhSiOvTzdmmqE YC0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=OYhBn7mtcuUaCuqfohHTc4T4pPlm5m37H5N1O5/yGZI=; b=GK/oxh9IISClypIIL3QRn1py4pm/kpwQhI9dTcJ6b6q9Sg7QUy/v4Ax88dLv1xUr1b upMbx08kH4zexKEX8XQZi6OaoeQMyL7Fa5n46Et3vHDacRHMouRwsibNngSQUUZ3s0p6 l0cBfodmkTNxhsfD1G9w039+H5UfW6sJndGoBdmdCGB/z35juTwERookR4XkKtnfjDE3 Xks5tQoIa755ALmIA5stS6hlLuWrbBOFNaefsrAIh6SzAaI116QNboEFqCj+udDstd+o q75UTtevJCvadwqrgybeGGquGdsZC5HF5/po6LVFK1s/FxrD3FEFyQoJ59CKIQSC0coE ylIg== X-Gm-Message-State: AIVw110TrhXnvcmEvgYt4qt/sBLB8UsTV0WkI6MaMUT3c5lpGM9oFbjk MW/3SnkQsOqMXbW/MYJxtCZGVxjP1g== X-Received: by 10.46.20.88 with SMTP id 24mr1565715lju.51.1501159446879; Thu, 27 Jul 2017 05:44:06 -0700 (PDT) In-Reply-To: <87h8xyqjn7.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113892 Archived-At: On Thu, Jul 27, 2017, 6:07 AM Sharon Kimble wrote: > Emanuel Berg writes: > > (defconst modi/abbrev-hooks '(verilog-mode-hook > emacs-lisp-mode-hook > org-mode-hook) > "List of hooks of major modes in which abbrev should be enabled.") > You can customize this to only the major modes where you want abbrev-mode to be enabled. These values are specific to my use case. > heavily influenced by kaushalmodi > Thanks for the attribute. I wasn't expecting any so I was surprised :) (setq save-abbrevs 'silently) > This is repeating (based on the snippet you pasted above). (setq-default abbrev-mode t) > This would enable abbrev-mode globally. So the per-major-mode abbrev-mode enabling above would be redundant. Also I wouldn't enable any minor mode by just setting the mode variable. The canonical way would be to use (global-FOO-mode 1) or (global-FOO-mode) if global-FOO-mode is defined. So how do I 'turn on' case-fixed please? Would it be something like - > > --8<---------------cut here---------------start------------->8--- > (setq abbrev-mode case-fixed t) > --8<---------------cut here---------------end--------------->8--- > Above will not work. I haven't yet tried but check out the solution someone posted here: https://stackoverflow.com/a/15315076/1219634 > -- Kaushal Modi