From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ricardo Anguiano Newsgroups: gmane.emacs.help Subject: Re: development Date: 06 Dec 2002 13:38:30 -0800 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <86wummomjt.fsf@potter.codesourcery.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039211500 27188 80.91.224.249 (6 Dec 2002 21:51:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 21:51:40 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KQNm-0006sx-00 for ; Fri, 06 Dec 2002 22:51:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KQDa-00087U-00; Fri, 06 Dec 2002 16:41:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 78 Original-Xref: shelby.stanford.edu gnu.emacs.help:107810 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4359 McClain 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