Created
November 9, 2012 15:37
-
-
Save freyes/4046359 to your computer and use it in GitHub Desktop.
Really Simple Emacs Configuration for Begginners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; to debug the .emacs file | |
(setq debug-on-error nil) | |
(setq visible-bell nil) | |
;; setup the default mode to use | |
;;Text mode is happier than Fundamental mode ;-) | |
(setq default-major-mode 'text-mode) | |
;; define the mail and name | |
(setq user-mail-address "foo@example.com") | |
(setq user-full-name "Foo Bar") | |
;; be nice with X clipboard | |
(setq x-select-enable-clipboard t) | |
;; use Control+g fot goto-line | |
(global-set-key [(control g)] 'goto-line) | |
;; enable menubar and tool bar | |
(menu-bar-mode 1) | |
(tool-bar-mode 1) | |
;; turn on font-lock mode | |
(global-font-lock-mode t) | |
(require 'font-lock) ; enable syntax highlighting | |
;; simple cut, copy, paste | |
(global-set-key [f2] 'clipboard-kill-region) | |
(global-set-key [f3] 'clipboard-kill-ring-save) | |
(global-set-key [f4] 'clipboard-yank) | |
(global-set-key [end] 'end-of-line) | |
(global-set-key [home] 'beginning-of-line) | |
;;touche del et suppr | |
(global-set-key [delete] 'delete-char) | |
;;(dysplay question in 'y/n' instead of 'yes/no') | |
(fset 'yes-or-no-p 'y-or-n-p) | |
;; tramp let you open remote files over ssh | |
(require 'tramp) | |
(setq tramp-default-method "ssh") | |
;;; Prevent Extraneous Tabs | |
(setq-default indent-tabs-mode nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment