mac - Homebrew CLI Emacs inserting ¯ when I press M-<

07
2014-07
  • apennebaker

    When I try to navigate to the start of a buffer with M-<, Emacs instead inserts a weird character ¯. How should I correct Emacs or Terminal.app to fix this?

    $ specs emacs brew bash os
    Specs:
    
    specs 0.4
    https://github.com/mcandre/specs#readme
    
    emacs --version
    GNU Emacs 24.3.1
    Copyright (C) 2013 Free Software Foundation, Inc.
    GNU Emacs comes with ABSOLUTELY NO WARRANTY.
    You may redistribute copies of Emacs
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.
    
    brew --version
    0.9.4
    
    bash --version
    GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
    Copyright (C) 2007 Free Software Foundation, Inc.
    
    system_profiler SPSoftwareDataType | grep 'System Version'
          System Version: OS X 10.8.4 (12E55)
    

    Update

    Aha!

    Terminal -> Preferences... -> Settings -> (profile) -> Keyboard -> Use option as meta key

  • Answers
  • hoosierEE

    Eh, why not?

    Terminal -> Preferences... -> Settings -> (profile) -> Keyboard -> Use option as meta key

    Source: Homebrew CLI Emacs inserting ¯ when I press M-<


  • Related Question

    osx - Case insensitive tab completion in Bash
  • Jeffrey Aylesworth

    Is there any way to make Bash tab complete case insensitively?

    $ bash --version
    GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
    Copyright (C) 2007 Free Software Foundation, Inc.
    

    I am using Mac OS X 10.6


  • Related Answers
  • John T

    You should be able to use:

    set completion-ignore-case on

    add it to /etc/inputrc.

  • ؘؘؘ

    Building on @ClayBridges' comment: To make the setting persistent, as an alternative to editing ~/.inputrc or /etc/inputrc, you can add

    bind "set completion-ignore-case on"
    

    to a shell profile file such as ~/.bash_profile.

    Note that such commands in your profile take precedence over any defined in either /etc/inputrc or ~/.inputrc.

    (A related command that makes completion of file and directory names easier is:

    bind "set show-all-if-ambiguous on"
    

    This makes it unnecessary to press Tab twice when there is more than one match.)