Results 1 to 3 of 3

Thread: customization of M-compile shortcut key in emacs

  1. #1
    Join Date
    Apr 2005
    Beans
    849

    Question customization of M-compile shortcut key in emacs

    I want to compile my sourcefile from within emacs.
    I have a working Makefile,
    and would simply like the,
    Code:
    M-compile
    command to be called when I press, something like
    Code:
    C-c C-c
    So that the buffercommandline asks
    Code:
    Compile command: make -k
    -------------------------------------------------------------
    Thanks in advance.

  2. #2
    Join Date
    May 2007
    Location
    London
    Beans
    9
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: customization of M-compile shortcut key in emacs

    Hi,

    I think
    Code:
    C-c C-c
    adds a comment (at least in c++ Abbrev mode)

    In principle you can add to your .emacs file,

    Code:
    (global-set-key [SOME KEY YOU CHOOSE] 'compile)
    Just choose it so that it doesn't interfere with other stuff you use.

    for example I have,

    Code:
    (global-set-key [f12] 'compile)
    in my .emacs.

  3. #3
    Join Date
    Apr 2005
    Beans
    849

    Re: customization of M-compile shortcut key in emacs

    Hi, that works perfectly,
    thanks.

    Running 8.10 on a lenovo 3000 n200!
    Fingerprint reader doesn't work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •