Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6179567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:41:26+00:00 2026-05-24T00:41:26+00:00

Having minor issue configuring emacs. I am trying to re-assign the M-Tab key binding

  • 0

Having minor issue configuring emacs. I am trying to re-assign the M-Tab key binding for anything code completion as its already bound to ubuntu unity “tab/page viewer”.

(require 'anything)
(require 'anything-ipython)
(when (require 'anything-show-completion nil t)
  (use-anything-show-completion 'anything-ipython-complete
                            '(length initial-pattern)))

These are the attempts I have had to rebind it. don’t particularly want but I know its not taken by anything else.

;;; (define-key anything-mode-map (kbd "<F9>") 'anything)
;;; (define-key anything-show-completion-mode-map (kbd "<F9>") 'anything)
;;; (define-key anything-show-completion-map (kbd "<F9>") 'anything)

Just can’t quite get it right.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:41:27+00:00Added an answer on May 24, 2026 at 12:41 am

    I think you’ll find that you want to use lower-case “f9”: (kbd "<f9>") instead of (kbd "<F9>").

    You can check with C-hkF9 to see what Emacs reports that key as being, and use that same string verbatim as the argument to(kbd).

    Also note that you use ESC as a substitute for Meta — Emacs will translate it. So ESCTAB will do the same as M-TAB. And in the case of TAB, you can also generate that character code with C-i, so M-C-i is another existing binding.

    I looked up the files you mentioned, and anything-ipython.el seems to be the only one which binds M-TAB, and based on its installation instructions you should already have the following code:

    ;;  Install: 
    ;;  =======
    ;;
    ;; Setup anything python:
    ;; Put this file in your load path.
    ;; Add to .emacs:
    ;;
    ;; (require 'anything-ipython)
    ;; (add-hook 'python-mode-hook #'(lambda ()
    ;;                                 (define-key py-mode-map (kbd "M-<tab>") 'anything-ipython-complete)))
    ;; (add-hook 'ipython-shell-hook #'(lambda ()
    ;;                                   (define-key py-mode-map (kbd "M-<tab>") 'anything-ipython-complete)))
    ;;
    

    So I’m guessing that’s what you want to be changing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a minor issue with IE7 (whats New)... I am trying to
I'm having a minor issue dealing with pointers to overloaded member functions in C++.
I am having, what i believe is a minor issue. I am developing a
I'm having some minor problems with some animations I'm trying to set up. I
I am having two minor problems in this code but i am unable to
I am currently having a minor issue with a Java Jframe and a button
I am coding in Perl and i'm having some minor issue over here. I
I'm having a minor css issue. I have a series of layered divs and
Having a minor problem, I'm trying to create an about us dialog box by
I'm running into a minor issue with some ASP.Net code I'm working on. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.