5

This is my first post at AskDifferent, hopefully it works out.

My problem:

  • i want to insert the symbol "λ" aka 'lamda' everytime i use the Option-L key. However, by default my OS Mountain Lion inserts "¬".

My question:

  • How can i change this permanently and for every application i open (i.e. any browser, MS Word, Finder, etc…). I've never used "¬" but as an engineering student i very often require "λ."

This post was very informative and in depth:

How can I expand the number of special characters I can type using my keyboard?

However i have no desire to change my overall layout – only a couple keys. It didn't really address the simple question i have.

Is there a way to do this without creating a new keyboard layout? Can i not simply change a single special character from "¬" to "λ" ? I am currently looking at the "Ukelele" application but i don't want to be creating all sorts of new stuff.

Thank You.

3 Answers 3

2

You might want to try just defining ¬ as λ in system prefs/language & text/text/symbol and text substitutions. Normally you need to type a space or another character to get the switch, and there may be some apps it does not work in (Pages and Word have their own symbol and text substitution settings).

2

Is there a way to do this without creating a new keyboard layout?

You can do it by defining Service:

  1. Run Automator
  2. Choose a type for your document: Service
  3. Check Text from Library on the left
  4. Double click Get Specified Text
  5. On the right check Output replaces selected text
  6. Paste your character into text editor window of "Get Specified Text"

  7. Run System Preferences and choose Keyboard -> Keyboard Shortcuts

  8. Choose Services
  9. Find your brand new service and assign it a shortcut

Or with key bindings.

2

You can create ~/Library/KeyBindings/ and save a property list like this as DefaultKeyBinding.dict:

{
    "~l" = (insertText:, "λ");
}

After reopening applications, ⌥L should insert λ in most text views. It doesn't work in for example Terminal or Xcode though.

Other options:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .