Hide comments in emacs python mode?

Discussion in 'Python' started by Charles Fox, Oct 30, 2007.

  1. Charles Fox

    Charles Fox Guest

    Hi guys,

    I'm playing with Python in emacs, with python mode.

    I'd like to be able to press a key to toggle the code comments on and
    off -- to switch between beautiful clean Python code, and the full
    text that tells me what's going in in English.

    Is this currently possible? I know there is a hide/show mode in
    emacs, it would need to be set to hide (1) whole lines that start with
    #, (2) parts of lines after the '#' for comments after code. Has
    anyone already written this?
    Charles Fox, Oct 30, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John J Lee
    Replies:
    3
    Views:
    448
    bruno at modulix
    Dec 1, 2005
  2. Edward Loper
    Replies:
    0
    Views:
    439
    Edward Loper
    Aug 7, 2007
  3. Jeffrey Moss

    eruby mode emacs with mmm-mode

    Jeffrey Moss, Jul 6, 2005, in forum: Ruby
    Replies:
    1
    Views:
    131
    Alan Chen
    Jul 6, 2005
  4. PerlFAQ Server
    Replies:
    1
    Views:
    178
    Marc Girod
    Jan 8, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    150
    PerlFAQ Server
    Apr 12, 2011
Loading...

Share This Page