From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiegley Subject: Re: A new module for Org-mode: Org-X Date: Mon, 15 Aug 2011 09:25:34 -0400 Message-ID: References: <2011-08-14T19-14-58@devnull.Karl-Voit.at> <80bovqop4w.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsxAh-0004tg-D3 for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 09:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsxAg-0002la-8J for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 09:25:39 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:46623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsxAg-0002lV-2G for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 09:25:38 -0400 Received: by gwaa20 with SMTP id a20so3403737gwa.0 for ; Mon, 15 Aug 2011 06:25:37 -0700 (PDT) In-Reply-To: <80bovqop4w.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 15 Aug 2011 14:06:23 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain "Sebastien Vauban" writes: > Would you have a .emacs part about this (debugging, profiling, etc.) that > you're willing to share. I am confident that I could jump easier into full > Emacs Lisp if I would have a better environment. I'm attaching my lang-emacs-lisp.el file. The really big modules to know are: - edebug <-- sheer brilliance - eldoc - elint - elp (the Emacs Profiler) If you do a LOT of code hacking in Lisp, then paredit and redshank are invaluable. If you only dabble/debug, they are unnecessary. John --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=lang-emacs-lisp.el Content-Transfer-Encoding: quoted-printable ;;;_ * eldoc (add-hook 'emacs-lisp-mode-hook (lambda () (require 'edebug))) ;;;_ * eldoc (eval-after-load "eldoc" '(diminish 'eldoc-mode)) ;;;_ * elint (defun elint-current-buffer () (interactive) (elint-initialize) (elint-current-buffer)) (eval-after-load "elint" '(progn (add-to-list 'elint-standard-variables 'current-prefix-arg) (add-to-list 'elint-standard-variables 'command-line-args-left) (add-to-list 'elint-standard-variables 'buffer-file-coding-system) (add-to-list 'elint-standard-variables 'emacs-major-version) (add-to-list 'elint-standard-variables 'window-system))) ;;;_ * emacs-lisp (add-hook 'emacs-lisp-mode-hook 'turn-on-auto-fill) (font-lock-add-keywords 'emacs-lisp-mode '(("(\\(lambda\\)\\>" (0 (ignore (compose-region (match-beginning 1) (match-end 1) ?=CE=BB)))))) (defun elisp-indent-or-complete (&optional arg) (interactive "p") (call-interactively 'lisp-indent-line) (unless (or (looking-back "^\\s-*") (bolp) (not (looking-back "[-A-Za-z0-9_*+/=3D<>!?]+"))) (call-interactively 'lisp-complete-symbol))) (eval-after-load "lisp-mode" '(define-key emacs-lisp-mode-map [tab] 'elisp-indent-or-complete)) ;;;_ + column-marker (add-hook 'emacs-lisp-mode-hook (lambda () (column-marker-1 79))) ;;;_ + highlight-parentheses (autoload 'highlight-parentheses-mode "highlight-parentheses") (add-hook 'emacs-lisp-mode-hook 'highlight-parentheses-mode) (eval-after-load "highlight-parentheses" '(diminish 'highlight-parentheses-mode)) ;;;_ + paredit (autoload 'paredit-mode "paredit" "Minor mode for pseudo-structurally editing Lisp code." t) (autoload 'turn-on-paredit-mode "paredit" "Minor mode for pseudo-structurally editing Lisp code." t) (add-hook 'emacs-lisp-mode-hook 'turn-on-paredit-mode) (eval-after-load "paredit" '(diminish 'paredit-mode)) ;;;_ + redshank (autoload 'redshank-mode "redshank" "Minor mode for restructuring Lisp code (i.e., refactoring)." t) (add-hook 'emacs-lisp-mode-hook #'(lambda () (redshank-mode +1))) (eval-after-load "redshank" '(diminish 'redshank-mode)) ;;; lang-emacs-lisp.el ends here --=-=-=--