* cscope-minor-mode not enabled for C in emacs 25
@ 2018-03-05 13:18 stefan.puiu
2018-03-05 17:30 ` Adam Taylor
[not found] ` <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: stefan.puiu @ 2018-03-05 13:18 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cscope-minor-mode not enabled for C in emacs 25
2018-03-05 13:18 cscope-minor-mode not enabled for C in emacs 25 stefan.puiu
@ 2018-03-05 17:30 ` Adam Taylor
[not found] ` <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Adam Taylor @ 2018-03-05 17:30 UTC (permalink / raw)
To: stefan.puiu; +Cc: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>]
* Re: cscope-minor-mode not enabled for C in emacs 25
[not found] ` <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>
@ 2018-03-06 15:41 ` stefan.puiu
0 siblings, 0 replies; 3+ messages in thread
From: stefan.puiu @ 2018-03-06 15:41 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
On Monday, March 5, 2018 at 7:30:34 PM UTC+2, Adam Taylor wrote:
> 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.
Thanks, apparently adding
(cscope-setup)
in my .emacs solved it. That particular cscope function sets up cscope with c-mode and cc-mode. Not sure why in 24 this was not necessary...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-06 15:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 13:18 cscope-minor-mode not enabled for C in emacs 25 stefan.puiu
2018-03-05 17:30 ` Adam Taylor
[not found] ` <mailman.10150.1520271030.27995.help-gnu-emacs@gnu.org>
2018-03-06 15:41 ` stefan.puiu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).