Customizing emacs in .emacs file -


i want emacs start specific settings default. found need edit .emacs file in home directory , use lisp language. errors. need have:

  1. windows split vertical line (i work in c++ headers , source files)
  2. column number mode
  3. cua-mode enabled (to work normal copy, cut & paste shortcuts)

that's have in .emacs file:

(column-number-mode) (load "cua-mode") (cua-mode t) (split-window-right) 

i'ver tried coding 2 middle settings in 1 - (cua-mode). didn't work out well.

the column-number-mode works, cua not load , window split horizontally (top , bottom window). error? feedback.

from comments question:

if you're using emacs 24.1 or later,

(column-number-mode) (load "cua-mode") (cua-mode t) (split-window-right) 

but if you're using earlier version,

(column-number-mode) (load "cua-mode") (cua-mode t) (split-window-horizontally) 

by way, split-window-horizontally works in later versions of emacs (i'm using emacs 25.2.1).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -