all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>, help-gnu-emacs@gnu.org
Subject: Re: capitalised in 'abbrev_defs'?
Date: Thu, 27 Jul 2017 12:43:54 +0000	[thread overview]
Message-ID: <CAFyQvY2g8y83UZRdnqX=K7t0nasoehuX-_Z-RKG6-m9aeEahqg@mail.gmail.com> (raw)
In-Reply-To: <87h8xyqjn7.fsf@skimble.plus.com>

On Thu, Jul 27, 2017, 6:07 AM Sharon Kimble <boudiccas@skimble.plus.com>
wrote:

> Emanuel Berg <moasen@zoho.com> 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


  reply	other threads:[~2017-07-27 12:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27  7:37 capitalised in 'abbrev_defs'? Sharon Kimble
2017-07-27  8:15 ` Emanuel Berg
2017-07-27 10:06   ` Sharon Kimble
2017-07-27 12:43     ` Kaushal Modi [this message]
2017-07-27 15:10     ` Emanuel Berg

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='CAFyQvY2g8y83UZRdnqX=K7t0nasoehuX-_Z-RKG6-m9aeEahqg@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=boudiccas@skimble.plus.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.