Emacs With GUI on mac os. Different keyboard layout key bindings - macos

I am using two version of emacs. One in terminal, and other from emacsformacosx.com. In terminal I can use non-English keyboard layout and everything fine. But emacs version with gui don't understands these commands. Why it happening? Why I can't just run terminal version with GUI?
update:
For example when I pressed M-x with non-English keyboard layout in minibuffer appear text - M-ч is undefined. ч is a symbol equal to x. Pressing same shortcut in terminal version of Emacs works fine. Emacs running on other OS haven't this problem. I think to solve it needs to run terminal version with gui and use it. It is impossible. But why?

Related

restoring standard emacs key binding effectiveness in VSCode Terminal window

I periodically get thrown into the emacs editor in vscode, when I issue git commands.
For example, I'd like to edit the commit message for git, but the standard emacs key sequence ctrl-X ctrl-C is not accepted in the terminal window. This makes it difficult to exit emacs in the standard way.
I assume it's not being sent because MacOS or VSCode is intercepting the key combination.
I also assume that if MacOS was intercepting a two-keystroke combination, I would have noticed when running emacs on the MacOS terminal program (Unix shell prompt)

How to cancel the windows shortcut key when I use emacs 24.3 in gui in windows?

I download the emacs 24.3 in http://ftp.gnu.org/pub/gnu/emacs/windows/
In a gui mode, I found the following trouble. So I want to cancel the windows shortcut key
The 1st example is that I define the shortcut "C-F2" in linux and I also want to use it in windows.
The 2nd example "C-space" makes me to mark things but it is not working in windows. It is obvious that emacs are occupied by the windows shortcuts. How can I cancel the windows shortcut key when I use emacs in windows?
I suspect these are not taken by Windows itself, but by your IME. It may be possible to change the keys in the IME Settings.

How do you get the Windows Console \ Command Prompt to display color?

My problem is as follows:
I used to code on Linux (Ubuntu, to be more precise), but now I am using a Windows machine (7 and 8.1). One of the major caveats for me is that the Command Prompt in either Windows does not display other colors or font styles other than the default one, resulting in a monotone terminal.
This is useful for debugging Symfony projects (as errors have colors, making them easier to read) and more. This happens out of the box in the Linux terminal and wish to have the same behavior in Windows.
Is there a way to achieve this in the default Command Prompt (how?) or is there a 3-rd party application that achieves this (I've already tried PowerCMD but apparently it doesn't allow php to output to the console)?
I had the same problem and solved it by switching to another terminal.
I Use "cmder" terminal for windows which supports all the color codes out of the box. Symfony3 console looks pretty much as the one you know from Linux.
Check out this comparison article: Comparison to other window terminal
Download cmder terminal from: cmder homepage
Cmder terminal comes with build in color themes for terminal window. The one below comes by default "Monokai", but if you like the standard look feel free to switch to "Ubuntu" or "xterm" theme (those are also build in themes - there are more themes available out of the box).
"Monokai"
"Ubuntu"
"xterm"
If you like transparency for active and inactive terminal window you can set it too (Settings shortcut -> "Ctrl + Alt + P").
As Symfony2 console component documentation says, windows doesn't support natively ANSI colors. You could install ANSICON as suggested there or you can try with cygwin, it has full shell support (bash or zsh) so you can have colors and many more things.

Cocoa Emacs print-buffer

In Carbon Emacs, I was able to call M-x print-buffer and an OS-X Print Dialog appeared, letting me choose my printer.
Now that I've switched to Cocoa Emacs 23.1, the print-buffer command does not behave the same way. It ends up sending the job directly to the printer, using the last selected printer (which might not even be available).
Is there a way to get the OS X Print Dialog to appear before printing in Cocoa Emacs?
I'm also interested in this. I found Mac Print Mode on emacswiki:
http://www.emacswiki.org/emacs/MacPrintMode
I haven't had a chance to try it out yet, but sounds like what you're looking for.

Scrolling inside Vim in Mac's Terminal

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this.
Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up?
Or should I seriously consider using a different terminal application?
And if you're using iTerm, add this to your vimrc
:set mouse=a
http://bitheap.org/mouseterm/
Use MouseTerm (and do make sure to install SIMBL first!) and scrolling will work like a charm, even remote, using Mac Terminal.
You need to fully quit the Terminal application (Command+Q) and then launch it again after installing MouseTerm.
This is an old question, but a top hit on google, so I feel compelled to provide an updated answer.
Running OSX El Capitan 10.11, vim mouse and trackpad scrolling just worked(TM) for me in Terminal.app by default. However occasionally the mouse/trackpad input stopped manipulating the vim buffer, and started scrolling the terminal buffer. The answer was Command+R or Menu View --> Allow Mouse Reporting. Turning that on allowed the mouse/trackpad scroll operations to move the cursor in vim.
Termanal Menu > View > Allow Mouse Reporting
Terminal Menu > Preferences >
Keyboard > Scroll alternate screen
If the mouse functionalities still do not work properly take a look at my answer in this post How to let vim behave on Mac OS X as on Ubuntu?, just add to your .vimrc
set ttymouse=xterm2
You can read this article, but I'm pretty sure since the default terminal in Mac OS X has a built-in scrollbar, the mousewheel commands automatically go to it. You could definitely use gVim as suggested in the previous answer. I find that I don't generally want to use the mouse in Vim though as it takes my hands off the keyboard.
I just use 50j to go down and 50k to go up. Not exactly scrolling, but it works pretty well.
Make sure the terminal is xterm & not ansi in Terminal Menu > Preferences > Profiles > Advanced. I accidentally broke scrolling by changing the term type in a naive effort to get coloring to work over ssh.
Use gVim, which gives you a text editing environment in a window you can scroll. Terminal is not involved when using gVim.
I'm using xterm in X11 (XQuartz 2.3.4) and vim works very fine with mouse and also suport 256 colors.
Here is the ~/.Xresources I use to make my xterm nicer in X11:
XTerm*faceName: Lucida Sans Typewriter Regular
XTerm*faceSize: 9
XTerm*utf8: 1
xterm*saveLines: 1000
xterm*jumpScroll: true
!xterm*awaitInput: true
!xterm*multiScroll: true
XTerm*scrollBar: false
xterm*scrollbar*thickness: 16
xterm*rightScrollBar: true
XTerm*foreground: white
XTerm*background: grey10
!XTerm*background: black
XTerm*cursorColor: yellow
xterm*visualBell: false
xterm*loginShell: true
Little tips, to remove the bell sound in X11's xterm type this command:
xset b 0
I would recommend using iTerm - it has so many advantages over Terminal eg Mouse support, 256 colors, sensible copy and paste (auto-copy, word/url selection with double click, middle click paste)...
When using iTerm create a .vimrc file (if not already there) in your home folder and add the line:
:set mouse=a
Scrolling down in vim to view a file works after this.

Resources