(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