My emacs configuration:. emacs

Source: Internet
Author: User

(Tool-bar-mode 0)
(Menu-bar-mode 0)
(Blink-cursor-mode 0)
;;( Set-scroll-bar-mode Nil)
;;( Global-linum-mode 0)
(Set-default-font "16")
;;( Fringe-mode 1)

;; -----Color Setting---------
;; (Set-background-color "#000")
;; (set-foreground-color "White")
;; (Set-face-foreground ' highlight "green")
;; (Set-face-background ' Highlight "blue")
;; (Set-face-background ' Region "Red")
;; (set-face-foreground ' Region "yellow")
;; (setq Global-font-lock-mode T)
(setq frame-title-format "@%b")
;; Displays the name of buffer in the title bar instead of the useless hint [email protected].
;; Startup settings
(Setq default-frame-alist
‘(
(Top. 100)
(left. 380)
;(width. 70g
;(height. 30)
(tool-bar-lines. 0)
(menu-bar-lines. 0)))

(setq inhibit-startup-message T)
;; Turn off the screen when Emacs starts



(setq make-backup-files Nil)
;; Setting does not produce backup files

;;( SETQ auto-save-mode Nil)
;; Auto Save mode

(Setq-default make-backup-files Nil)
;; Do not generate temporary files
(setq speedbar-show-unknown-files T)
;; All directories and files can be displayed


(Put ' upcase-region ' disabled nil)
(Put ' downcase-region ' disabled nil)
(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.
)
(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.
)

;; Add Php-mode
(Add-to-list ' Load-path "/usr/share/emacs/site-lisp")
(Require ' Php-mode)
(Add-to-list ' auto-mode-alist ' ("\\.php[34]?\\ ' \\|\\.phtml\\ '". Php-mode))

;; Add Emmet-mode
(Add-to-list ' Load-path "/usr/share/emacs/site-lisp")
(Require ' Emmet-mode)
(Add-hook ' Sgml-mode-hook ' Emmet-mode);; Auto-start on any markup modes
(Add-hook ' Html-mode-hook ' Emmet-mode);; Auto-start on HTML
(Add-hook ' Css-mode-hook ' Emmet-mode);; Enable Emmet ' s CSS abbreviation.


;; Set Auto Indent
(Global-set-key (kbd "RET") ' Newline-and-indent)

(Fset ' yes-or-no-p ' y-or-n-p)
;; Change Emacs stubborn to ask you to answer yes to the behavior. Press Y or SPACEBAR to indicate that Yes,n represents No.

My emacs configuration:. emacs

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.