what is custom-set-variables and faces in my .emacs?

These blocks are added by the customize interface, as Noufal pointed out. You can move them to a separate file, though, if you like. Just add this to your ~/.emacs.d/init.el: (setq custom-file “~/.emacs.d/custom.el”) (load custom-file) or, if you’re still using an old-fashioned ~/.emacs file: (setq custom-file “~/.custom.el”) (load custom-file) A slightly more complex snippet that … Read more

Set Emacs defaut font face per-buffer/mode

How about something like this: (add-hook ‘markdown-mode-hook (lambda () (variable-pitch-mode t)) You can then customize the variable-pitch face, and the other faces in the buffer will inherit from this instead of the default face. Read the docs for buffer-face-mode for more customization details. (BufFace is also used for text-scale-increase and text-scale-decrease… very useful.)

Get font face under cursor in Emacs

what-cursor-position with a prefix argument shows the face under point, among other information. Keyboard shortcut is C-u C-x = Example output (the face property is shown in the last paragraph): position: 5356 of 25376 (21%), column: 4 character: r (displayed as r) (codepoint 114, #o162, #x72) preferred charset: ascii (ASCII (ISO646 IRV)) code point in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)