Hi, I’m new to emacs and trying to get my way through the cc-mode for editing c/c++ files in the manual, it says to activate h cc-mode using the ``c-mode`` symbol and use ``C-M-a`` keybinding to move to beginning of the function, but when I do it, it says ``M-a undefined`` in the mini-buffer. How do I fix it. I have tried look in the manual and net but could get any lead…

  • sleekelite@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    C-M-a means “hold control and meta at the same time and then press a”.

    C-h k (hold control, press h, let go of h and control, press k) followed by key presses will tell you what emacs saw and what function it will run.

    • rantdubey@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      yea bruv did that but getting the message, ``M-ā is undefined``. Do I require to make changes to my init file?

      • haxxflaxx@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I had a similar issue on my windows work computer. In the keyboard layout “C-M-e” was translated into ‘€’ . I simply rebound ‘€’ to be forward-defun as I don’t type that ever, and if I for some reason wanted to I guess I could do “C-q €”