help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding the hork point in ~/.emacs


From: Emanuel Berg
Subject: Re: finding the hork point in ~/.emacs
Date: Thu, 27 Aug 2020 04:27:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Drew Adams wrote:

> Unless you have only a few such statements, see
> what others have suggested as an alternative:
> binary search. Use `M-x comment-region' to comment
> out 1/2, then 3/4, 7/8, 15/16,... of the file, till
> you find just what caused the problem.
>
> If you use `C-u M-x comment-region' it UNcomments.

Try M-; for `comment-dwim'. It comments and then
uncomments if the region contains a comment. Also,
this preserves comments already there. So if you have

  ;; parens
  
  (require 'paren)
  (show-paren-mode t)
  (setq show-paren-delay  0)
  
  ;; fanfare / splash
  
  (setq inhibit-startup-screen t)
  (setq inhibit-startup-echo-area-message "incal")
  (setq byte-compile-verbose nil)

do M-;

  ;; ;; parens
  ;; 
  ;; (require 'paren)
  ;; (show-paren-mode t)
  ;; (setq show-paren-delay  0)
  ;; 
  ;; ;; fanfare / splash
  ;; 
  ;; (setq inhibit-startup-screen t)
  ;; (setq inhibit-startup-echo-area-message "incal")
  ;; (setq byte-compile-verbose nil)

do M-; again

  ;; parens

  (require 'paren)
  (show-paren-mode t)
  (setq show-paren-delay  0)

  ;; fanfare / splash

  (setq inhibit-startup-screen t)
  (setq inhibit-startup-echo-area-message "incal")
  (setq byte-compile-verbose nil)

M-; is also one of the most ergonomic keystrokes on
the keyboard, so make sure to use it often :)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]