* Re: development
[not found] <mailman.1039209366.1978.help-gnu-emacs@gnu.org>
@ 2002-12-06 21:38 ` Ricardo Anguiano
2002-12-06 21:46 ` development Michael Slass
2002-12-06 22:38 ` development Nimar Arora
2 siblings, 0 replies; 5+ messages in thread
From: Ricardo Anguiano @ 2002-12-06 21:38 UTC (permalink / raw)
McClain <McClain@uni.de> writes:
> Hi ppl,
>
> I want to develop projects using Emacs as code editor. So my
> question is, what is the common way developing C/C++ code with
> Emacs, just use c(++)-mode
I mostly rely on the language mode.
> or are there any minor modes which parse your source code and create
> function and type lists?
Python mode gives a list of classes and members. Anybody know about a
similar feature for C or C++? A list of C and C++ functions/types in
the speed bar would be useful. Cscope (http://cscope.sourceforge.net/)
comes close.
> Maybe you've got experience developing with emacs and can recommend
> a certain elisp package or something like this...
I don't know about any elisp packages. I find these things handy:
;; Look and feel customizations.
; (emacs) Cursor Display
(blink-cursor-mode nil)
(setq cursor-in-non-selected-windows nil) ; remove cursor from
; non-selected windows
; I like lots of color.
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
(column-number-mode t)
;; ============
;; Keybindings.
(global-set-key "\C-ct" 'my-insert-current-time)
(global-set-key "\C-cc" 'compile)
(global-set-key "\C-cg" 'goto-line)
(global-set-key "\C-cr" 'rename-buffer)
(global-set-key "\C-cb" 'shell) ; b for bash
;; ==========
;; Functions.
;; current-time
(defun my-insert-current-time ()
(interactive)
(insert (current-time-string)))
;; ===========
; python mode
(setq auto-mode-alist
(cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
(cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
;================
; cscope in emacs
(require 'xcscope)
(define-key global-map [(control f3)] 'cscope-set-initial-directory)
(define-key global-map [(control f4)] 'cscope-unset-initial-directory)
(define-key global-map [(control f5)] 'cscope-find-this-symbol)
(define-key global-map [(control f6)] 'cscope-find-global-definition)
(define-key global-map [(control f7)]
'cscope-find-global-definition-no-prompting)
(define-key global-map [(control f8)] 'cscope-pop-mark)
(define-key global-map [(control f9)] 'cscope-next-symbol)
(define-key global-map [(control f10)] 'cscope-next-file)
(define-key global-map [(control f11)] 'cscope-prev-symbol)
(define-key global-map [(control f12)] 'cscope-prev-file)
(define-key global-map [(meta f9)] 'cscope-display-buffer)
(define-key global-map [(meta f10)] 'cscope-display-buffer-toggle)
--
Ricardo Anguiano
http://www.codesourcery.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: development
[not found] <mailman.1039209366.1978.help-gnu-emacs@gnu.org>
2002-12-06 21:38 ` development Ricardo Anguiano
@ 2002-12-06 21:46 ` Michael Slass
2002-12-07 12:35 ` development Klaus Berndl
2002-12-06 22:38 ` development Nimar Arora
2 siblings, 1 reply; 5+ messages in thread
From: Michael Slass @ 2002-12-06 21:46 UTC (permalink / raw)
McClain <McClain@uni.de> writes:
>Hi ppl,
>
>I want to develop projects using Emacs as code editor.
>So my question is, what is the common way developing
>C/C++ code with Emacs, just use c(++)-mode or are there
>any minor modes which parse your source code and create
>function and type lists? Maybe you've got experience
>developing with emacs and can recommend a certain
>elisp package or something like this...
Check out speedbar : M-x speedbar RET
--
Mike Slass
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: development
[not found] <mailman.1039209366.1978.help-gnu-emacs@gnu.org>
2002-12-06 21:38 ` development Ricardo Anguiano
2002-12-06 21:46 ` development Michael Slass
@ 2002-12-06 22:38 ` Nimar Arora
2 siblings, 0 replies; 5+ messages in thread
From: Nimar Arora @ 2002-12-06 22:38 UTC (permalink / raw)
McClain,
Here's the basic customization I use. I like the Kernighan & Ritchie
editing style but prefer an offset of 2 spaces. Hope, this helps.
Thanks,
Nimar
;; C-Customization
(c-add-style "myc"
'("k&r" (c-basic-offset . 2)
))
(add-hook 'c-mode-hook '(lambda ()
(c-set-style "myc")
(lazy-lock-mode)
(setq comment-column 45)
))
(setq-default c-hungry-delete-key t) ; delete through all white spaces
^ permalink raw reply [flat|nested] 5+ messages in thread
* development
@ 2002-12-06 22:59 McClain
0 siblings, 0 replies; 5+ messages in thread
From: McClain @ 2002-12-06 22:59 UTC (permalink / raw)
Hi ppl,
I want to develop projects using Emacs as code editor.
So my question is, what is the common way developing
C/C++ code with Emacs, just use c(++)-mode or are there
any minor modes which parse your source code and create
function and type lists? Maybe you've got experience
developing with emacs and can recommend a certain
elisp package or something like this...
thanks in advance....
...McClain
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: development
2002-12-06 21:46 ` development Michael Slass
@ 2002-12-07 12:35 ` Klaus Berndl
0 siblings, 0 replies; 5+ messages in thread
From: Klaus Berndl @ 2002-12-07 12:35 UTC (permalink / raw)
On Fri, 06 Dec 2002, Michael Slass wrote:
> McClain <McClain@uni.de> writes:
>
> >Hi ppl,
> >
> >I want to develop projects using Emacs as code editor.
> >So my question is, what is the common way developing
> >C/C++ code with Emacs, just use c(++)-mode or are there
> >any minor modes which parse your source code and create
> >function and type lists? Maybe you've got experience
> >developing with emacs and can recommend a certain
> >elisp package or something like this...
>
> Check out speedbar : M-x speedbar RET
Or as an alternative ECB (Emacs Code Browser), available at
http://home.swipnet.se/mayhem/ecb.html (the screenshots can tell you if this
is what you want).
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-12-07 12:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1039209366.1978.help-gnu-emacs@gnu.org>
2002-12-06 21:38 ` development Ricardo Anguiano
2002-12-06 21:46 ` development Michael Slass
2002-12-07 12:35 ` development Klaus Berndl
2002-12-06 22:38 ` development Nimar Arora
2002-12-06 22:59 development McClain
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.