Code Monkey home page Code Monkey logo

Comments (5)

 avatar commented on June 2, 2024

wasn't it produced via Shift+3 ?

from emacs-live.

keeds avatar keeds commented on June 2, 2024

sorry should have said this is on a UK keyboard. M-3 produces the #

from emacs-live.

 avatar commented on June 2, 2024

Alright, I see now...

On keyboards

On the standard US keyboard layout, the # symbol is ⇧ Shift+3. On standard UK and some European keyboards, the same keystrokes produce the pound currency symbol (£), and # is moved to a separate key above the right shift. On UK Mac keyboards, # is generated by ⌥ Opt+3, whereas on European Mac keyboards, the # can be found above the right shift key. Under DOS and Microsoft Windows, it can be also generated through the Alt code Alt+35.

from emacs-live.

samaaron avatar samaaron commented on June 2, 2024

I just use an American layout as it makes things easier.

The following should work

(global-unset-key (kbd "M-3"))
(global-set-key (kbd "M-3") (lambda () (interactive) (insert "#")))

However, on my system it still seems to be bound to window-mode shortcuts.

This did work though:

(define-key global-map (kbd "C-c 3") (lambda () (interactive) (insert "#")))

from emacs-live.

keeds avatar keeds commented on June 2, 2024

Thanks Sam,

This didn' t work.

The following should work

(global-unset-key (kbd "M-3"))
(global-set-key (kbd "M-3") (lambda () (interactive) (insert "#")))

However, on my system it still seems to be bound to window-mode shortcuts.

This did work.

This did work though:

(define-key global-map (kbd "C-c 3") (lambda () (interactive) (insert "#")))


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-9953914
.

from emacs-live.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.