all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Taylor <mr.adtaylor@gmail.com>
To: stefan.puiu@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: cscope-minor-mode not enabled for C in emacs 25
Date: Mon, 5 Mar 2018 12:30:22 -0500	[thread overview]
Message-ID: <CAKX+4G9iBgvLMVmKqUq8wdG=cVY0Os0W_H8ka3yB=+=NMcN7Dg@mail.gmail.com> (raw)
In-Reply-To: <e6c09992-a96d-4ea2-b748-07f49c8e8af3@googlegroups.com>

I don't know why it's missing in 25, but you can add it to your c-mode
easily enough by adding the following to your init file:
    (add-hook 'c-mode-hook (lambda () (cscope-minor-mode 1)))

I'll assume you're adding for just c-mode files. If it's cc-mode then
just change the hook.

FWIW,
-Adam

On Mon, Mar 5, 2018 at 8:18 AM,  <stefan.puiu@gmail.com> wrote:
> Hi,
>
> I've asked this also on Emacs stackexchange (https://emacs.stackexchange.com/questions/38822/cscope-minor-mode-not-enabled-for-c-in-emacs-25), trying my luck here...
>
> I'm using Emacs 25 on Ubuntu 16.04 and all is mostly well, except that there's one difference between this version and 24 - on Emacs 24, any C/C++ file (*.c or *.cpp) I would open, cscope-minor-mode would be enabled. This isn't the case anymore on 25 (I've checked with 'C-h m'), so I have to type 'M-x cscope-minor-mode' on each new file I open, which is quite annoying. I'm using xcscope-el that ships with this version of Ubuntu (1.1-1, says dpkg output). Any idea what could be happening here? A pointer to where to start looking would be very helpful.
>
> Thanks in advance,
> Stefan.



  reply	other threads:[~2018-03-05 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-05 13:18 cscope-minor-mode not enabled for C in emacs 25 stefan.puiu
2018-03-05 17:30 ` Adam Taylor [this message]
     [not found] ` <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>
2018-03-06 15:41   ` stefan.puiu

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='CAKX+4G9iBgvLMVmKqUq8wdG=cVY0Os0W_H8ka3yB=+=NMcN7Dg@mail.gmail.com' \
    --to=mr.adtaylor@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stefan.puiu@gmail.com \
    /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.