Configure!mk!

Source: Internet
Author: User

(Global-set-key [F9] ' Compile-file)
(Global-set-key [F10] ' Gud-gdb)
(Global-set-key (kbd "C-z") ' Undo]
(Global-set-key (kbd "RET") ' Newline-and-indent)
(Global-linum-mode t)
(Show-paren-mode t)
(Define-key key-translation-map (kbd "c-d") (kbd "M-p m-y"))
(Global-set-key (kbd "m-p m-y") ' Kill-whole-line)
(Define-key key-translation-map (kbd "C-a") (kbd "C-x h"))
(setq c-default-style "awk")
(setq c-basic-offset 4)
;;; Exam Room Essentials
(Ido-mode t)

(setq default-frame-alist
' ((vertical-scroll-bars)
(top.)
(left.)
(width.)
(height.)
(Background-color. "Grey15")
(Foreground-color. "Grey")
(Cursor-color. "Gold1")
(Mouse-color. "Gold1")
(tool-bar-lines. 0)
(menu-bar-lines. 1)
(scroll-bar-lines. 0)
(Right-fringe)
(Left-fringe)))



(Global-hl-line-mode 1)

(set-face-background ' highlight "Gray5")
(set-face-foreground ' region "cyan")
(set-face-background ' Region "Blue")
(Set-face-foreground ' secondary-selection "Skyblue")
(Set-face-background ' secondary-selection "Darkblue")

;;;;; Set org mode
(setq org-startup-indented t)
;(setq org-log-done ' time)
;(s.etq org-log-done ' note)
;

;;; Irrelevant
(set-cursor-color "wheat")
(set-mouse-color "wheat")
(Global-font-lock-mode t);; Highlight
;;;;; Set compilation information
(Defun compile-file ()
(Interactive)
(Compile (format "g++-o '%s '%s '-g-lm-wall" (File-name-sans-extension (Buffer-name)) (Buffer-name ))))
;;( Global-set-key (kbd "<f9>") ' Compile-file)
;;;;; Set up one-click Debugging
;;;;; Change the title of the Emacs title bar
(setq frame-title-format "%b gxy")
;;;;; Allow the pasting of Emacs and other external programs
(setq x-select-enable-clipboard t)
;; Show column number
(setq column-number-mode t)
;; Sets the width of tab to 2 spaces
(setq default-tab-width 4)
(setq c-basic-offset 4)
;;;;; Enable time display settings on the bar above the Minibuffer (forget what's called)
(Display-time-mode 1)
;;;;; Time using 24-hour system
(setq display-time-24hr-format t)
;;;;; Time display includes date and specific time
(setq display-time-day-and-date t)
;;;;; The frequency of change in time, how many units?
(setq display-time-interval)
;;;;; is with a roller mouse
(Mouse-wheel-mode t)
;;;;; Backup Settings
;;;;; Emacs also has an auto-save feature, which, by default in ~/.emacs.d/auto-save-list, is very useful, I have no changes here, see Sams teach yourself emacs in 24hours (I referred to as SAMS24)
;;;;; Backup Setup method, direct copy
(setq backup-by-copying t)
;; auto Disk
(setq auto-save-mode t)
;;;;; Get rid of annoying warning bells
(setq visible-bell nil)
(setq ring-bell-function ' ignore)
;;;;; The hands don't flash, I have to spend my eyes.
(blink-cursor-mode-1)
;;;;; Scrolling page is more comfortable, do not scroll the whole page
(setq scroll-step 1
Scroll-margin 3
scroll-conservatively 10000)
;;;;; Set Delete save record as 200, can be easily restored after infinite
(setq Kill-ring-max)
;;;;; Modify Transparency
(Set-frame-parameter (selected-frame) ' alpha (list)
(Add-to-list ' default-frame-alist (cons ' Alpha (list )))
(Setq-default cursor-type ' bar)

(Show-paren-mode 1);; Bracket Matching
(fset ' yes-or-no-p ' y-or-n-p);; of soy sauce
(setq make-backup-files nil)
(Global-auto-revert-mode t); auto Reload file





(Global-set-key (kbd "<f8>") ' Gdb-many-windows)


(Custom-set-variables
;; Custom-set-variables was added by custom.
 ;; If you edit it by hand, you could mess it up and so is careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, the They won ' t work right.
' (Blink-cursor-mode nil)
' (Column-number-mode t)
' (Cua-mode T Nil (cua-base))
' (Display-time-mode t)
' (Inhibit-startup-screen t)
' (Show-paren-mode t))
(custom-set-faces
;; Custom-set-faces was added by custom.
 ;; If you edit it by hand, you could mess it up and so is careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, the They won ' t work right.
' (Default ((T (: Family "Ubuntu Mono": Foundry "Unknown": Slant normal:weight normal:height 143:width Normal))))
(auto-insert-mode);;; Adds Hook to Find-files-hook
(setq auto-insert-directory "~/.emacs.d/mytemplates/");;; Or use custom, *note* Trailing slash important
(setq auto-insert-query nil);;; If you don ' t want to be prompted before insertion
(Define-auto-insert "\." "Moban.cpp")

Configure!mk!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.