From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: A new module for Org-mode: Org-X
Date: Mon, 15 Aug 2011 23:29:37 +0200 [thread overview]
Message-ID: <804o1ijrcu.fsf@somewhere.org> (raw)
In-Reply-To: m2aabast69.fsf@gmail.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 3167 bytes --]
Hi John,
John Wiegley wrote:
> "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
> 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
>
> ;;;_ * 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) ?λ))))))
>
> (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_*+/=<>!?]+")))
> (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
Thank you so much for this info. I will have a deep look at every line!
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2011-08-15 21:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-14 7:41 A new module for Org-mode: Org-X John Wiegley
2011-08-14 17:32 ` Karl Voit
2011-08-14 22:19 ` John Wiegley
2011-08-15 10:25 ` Karl Voit
2011-08-15 13:23 ` John Wiegley
2011-08-15 12:06 ` Sebastien Vauban
2011-08-15 13:25 ` John Wiegley
2011-08-15 21:29 ` Sebastien Vauban [this message]
2011-08-16 17:00 ` Achim Gratz
2011-08-16 19:27 ` John Wiegley
2011-08-16 19:42 ` Achim Gratz
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=804o1ijrcu.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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.