I want emacs to start with specific settings by default. I found that I need to edit the .emacs file in my home directory and use LISP language. However I do get some errors. I need to have:
- Windows split by vertical line (I work in C++ with headers and source files)
- Column number mode
- Cua-mode enabled (to work with normal copy, cut & paste shortcuts)
That's what I have in my .emacs file:
(column-number-mode)
(load "cua-mode")
(CUA-mode t)
(split-window-right)
I'ver tried coding two middle settings in one - (cua-mode). It didn't work out well.
The column-number-mode works, cua does not load and my window is split horizontally (top and bottom window). Where is my error? Thanks for feedback.
split-window-right, just asplit-window-horizontallyand-vertically. (Just so we're not getting confused, the first splits into side-by-side windows) - Ulrich Schwarzsplit-window-verticallyandsplit-window-horizontallyrenamed tosplit-window-belowandsplit-window-rightrespectively. The old names are kept as aliases." - phils(cua-mode 1)-- all lower case, and using a positive integer for the argument as per its documentation (C-h f cua-mode RET).cua-modeis autoloaded, so you shouldn't need the preceding call toload. - phils