How to enable tab key in scratch buffer of emacs? - emacs

Why tab does not work in scratch buffer of emacs? Is there any setting which will enable the tab in scratch buffer?

Related

Why doesn't emacs org mode work in -nw (--no-window-system) mode

I'm trying to give a shot to emacs org mode, so I created a file and started adding bullets and tasks, all fine.
I'd love to use emacs in -nw mode so it would blend into my workflow, but, when I open an org file in -nw mode, it read the bullets, but I can't use any of the org mode shortcuts and I get none of its benefits. Already double checked if I was indeed in org mode.
Am I doing something wrong?
It seems like your terminal is intercepting your keystrokes, and you should go into its settings to change that. If you're using Terminal for OSX, go to Preferences, and under the Profiles tab, select your profile and then the Keyboard tab. At the bottom there are two check boxes, and you just need to check "Use Option as Meta Key"

How to open the scratch buffer at the press of a key in Emacs

I have started using the scratch buffer very frequently while editing my emacs files to keep some temporary scratch information and checklists while coding.
Every since I discovered that Org mode has checkboxes for checklists and other awesome goodness for structuring text, I would always like to have my scratch buffer open up in org-mode at the press of a single key-stroke by say binding it to the F12 key.
Also at startup I would like my scratch buffer to permanently open up in org mode.

Emacs key bindings in DrRacket?

How are we supposed to configure DrRacket so that it does not use Emacs key bindings? Like I type C-s and it just saves the code instead of bringing up the search line. Or I use C-x C-f and it won't open another file. The DrRacket documentation claims to not use Emacs bindings but it obviously does.
You want to disable the check box, Enable keybindings in menus.
Unfortunately this checkbox is a bit buried:
Open the Racket Preferences dialog.
Click the Editing tab.
There's a row of sub-tabs for that. Click the General sub-tab.
A few items down you should see the Enable keybindings in menus check box. Un-check it.

Menu bar flashes for a moment when Emacs starts

With (menu-bar-mode 0) in my .emacs-file, Emacs (in a terminal) seems to be starting with the menu bar visible, and then within a fraction of a second, the bar disappears.
Is there a way to make Emacs not show the menu bar at all?
No: Emacs first starts by setting up its "frame" (which includes some initial display), then reads the .emacs file. That's why you see this flashing of the menu-bar. Emacs could read the .emacs first, but if the .emacs outputs any message or signals an error, there'd only be stderr to display it, whereas with the current setup, those messages are displayed in the minibuffer and the error can be caught in the "normal" way.
If you're runinng Linux (and I guess any system where Emacs runs in an X server), you can use X resources to tell Emacs you don't want the menu bar. Just put this in your ~/.Xresources file:
emacs.menuBar: off
These resources are used to customize frames appearance and are therefore read by Emacs at the very beginning.
See also:
Emacs manual: Menu Bars
Emacs manual: Table of Resources
man xrdb(1)

how to autoload the menu bar in emacs

I have installed YaSnippet in my emacs. Every time I start emacs, I have to turn on the menu bar manually by M-x menu-bar-mode, how do I load it by default ?
Also strangely the YaSnippet menu shows up the first time the menu bar comes up, however after I move to another buffer and back, I cant see the menu anymore ! How do I get it back without restarting emacs?
The menu bar is loaded by default in emacs. Therefore if you have to turn in on in every buffer it means that you have disabled it in your init file. Remove a line that would say something like (menu-bar-mode 0).
To start menu-bar-mode automatically, just put (menu-bar-mode 1) in your ~/.emacs
I'm afraid your yasnippet problem is outside of my realm of lore :(