DEV Community

Discussion on: Your first taste of emacs

Collapse
 
ankush981 profile image
Ankush Thakur

Things went south for me when trying to press M-x. I only got a weird character and finally gave up. I'm willing to put in the effort for learning vi/emacs, but I don't enjoy these stumbling blocks for every small thing. :(

Collapse
 
shaneikennedy profile image
Shane Kennedy

Interesting! What key did you use for M? The default on a Mac is the option key, but right at the beginning I remap it to command, so I'm wondering if that has something to do with it. Also, are you running emacs as its own client or running it in the terminal?

Good feedback! If I can help understand better I'll update the post :)

Collapse
 
ankush981 profile image
Ankush Thakur

I used the Option key and also tried the Meta key with no success. I think the problem is that I was inside the file buffer in edit mode (to borrow a vi term!) which is why the key combination produced just a stupid-looking character and wasn't interpreted as a command? In any case, you wrote a brilliant and highly enthusiastic tutorial that got me fired up once more despite countless previous bad experiences.

Thread Thread
 
shaneikennedy profile image
Shane Kennedy

Thanks for the kind words I'm glad you liked it :)

When I try option+x I get the weird character that you mention but command+x still works for me :/ Assuming you copied the code in this tutorial, it sounds like you copied the part where I remap command to "meta" and leave option as nothing, I would try making sure that both all of that lisp code is evaluated; I'm wondering if your emacs is in some weird state where you've unmapped the option key but not mapped the command key.. Try the tutorial from scratch (make sure to remove the .emacs file in your home directory) and when it comes to the section about remapping keys make sure to use M-x eval-buffer so that everything gets evaluated.

Thread Thread
 
ankush981 profile image
Ankush Thakur

I did that but found myself just typing the words into the file buffer (I think). I seem to be not switching to any eval-buffer or anything special by pressing M-x. Sorry, but I've given up for now. 😂 Thanks for your time! It was definitely worth the effort. I've seen Emacs wizards at work and it's a tool I'll revisit later for sure. 🙂