Advertisement
Guest User

Мой многострадальный .emacs

a guest
Nov 8th, 2014
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 6.51 KB | None | 0 0
  1. ;;; comment ￑タ￑タ￑タ￑ト￐ᄍ￐ᄑ￐ᄍ￐ᄑ￐ᄑ￐ᄍ ￐ᄍ￐ᄍ￐ᄍ￑ニ￑ニ￑ニ tttqqqwww←←← qqq
  2. ;;; ᅢᆰᅢᆪᅢᄏ (in qwerty) ᅢᄚᅢ빼ᄆ (jcuken)
  3. ;;; ←￶￳↑↑¥■ qwerty
  4.  
  5. (defmacro custom-comment (&rest rest)
  6.   nil)
  7. (defmacro ccc (&rest rest)  nil)
  8.  
  9. ;;(cd "C:\\cygwin\\home\\avpaqr")
  10. ;;(cd "C:/sfu/usr/local/src/")
  11. (setq line-number-mode t)
  12. (setq default-input-method "cyrillic-jcuken")
  13. ;(prefer-coding-system 'cp1251)
  14. ;(prefer-coding-system 'utf-8)
  15. ;(set-face-background 'default "lightgray")
  16. (set-face-background 'default "#dfdfdf")
  17. (set-face-foreground 'default "midnightblue")
  18. ;;; next for Ubuntu GNOME in VirtualBox
  19. (set-face-font 'default "-unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")
  20. ;(set-face-font 'default "-unknown-DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")
  21.  
  22. ;(set-frame-parameter nil 'cursor-color "grey")
  23. ;(set-frame-parameter nil 'background-color "#403550")
  24. ;(set-frame-parameter nil 'foreground-color "#c0a070")
  25.  
  26. ;(set-frame-parameter nil 'foreground-color "orange")
  27. ;(set-frame-parameter nil 'background-color "midnightblue")
  28.  
  29. ;(set-frame-font "")
  30. ;(set-frame-font "-outline-OCR A Extended-normal-normal-normal-mono-13-*-*-*-p-*-iso8859-1")
  31. ;(set-frame-font "-outline-MS Mincho-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  32. ;(set-frame-font "-outline-Lucida Sans Typewriter-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  33. ;(set-frame-font "-outline-Lucida Console-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  34. ;(set-frame-font "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  35. ;(set-frame-font "-outline-Consolas-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  36. ;(set-frame-font "bookman old style:normal")
  37. ;(set-frame-font "-outline-Eras Demi ITC-normal-normal-normal-sans-14-*-*-*-p-*-iso8859-1")
  38. ;(set-frame-font "-outline-Arial-bold-normal-normal-sans-14-*-*-*-p-*-iso8859-1")
  39. ;(set-frame-font "-outline-Arial-normal-normal-normal-sans-14-*-*-*-p-*-iso8859-1")
  40. ;(set-frame-font "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
  41. ;(set-frame-font "-outline-Courier New-bold-normal-normal-mono-14-*-*-*-c-*-iso8859-1")
  42. ;(frame-parameter nil 'font)
  43.  
  44. ;;; (set-face-font 'default "Lucida Console:normal:10::cyrillic")
  45. ;;; (set-face-font 'default "Lucida Sans Unicode:normal:12::cyrillic")
  46. ;;; (set-face-font 'default "Courier New::10::cyrillic")
  47. ; (set-face-font 'default "Times New Roman:bold:16::cyrillic")
  48. ; (set-face-font 'default "Courier New:bold:12::cyrillic")
  49.  
  50. ;(set-face-font 'default "Courier New:bold:10::cyrillic")
  51.  
  52. ;;;(set-face-font 'default "Courier New:normal:10::cyrillic")
  53.  
  54. ;; (set-face-font 'default "Lucida Sans Unicode:normal:12::cyrillic")
  55.  
  56. ;(set-face-background 'default "lightgray")
  57. ;(set-face-background 'default "NavajoWhite2")
  58. ;(set-face-background 'default "snow3")
  59. ;(set-face-background 'default "PapayaWhip")
  60. ;(set-face-background 'default "gainsboro")
  61. ;(set-face-background 'default "wheat")
  62. ;(set-face-background 'default "NavajoWhite")
  63. ;(set-face-background 'default "NavajoWhite3")
  64. ;(set-face-background 'default "cornsilk3")
  65. ;(set-face-background 'default "LemonChiffon3")
  66. ;(set-face-background 'default "seashell3")
  67. ;(set-face-background 'default "honeydew3")
  68. ;(set-face-background 'default "LavenderBlush3")
  69. ;(set-face-background 'default "LightGoldenrod2")
  70. ;(set-face-background 'default "wheat3")
  71. ;(set-face-background 'default "tan2")
  72. ;(set-face-background 'default "salmon1")
  73. ;(set-face-background 'default "thistle3")
  74. ;(set-face-background 'default "bisque3")
  75. ;
  76.  
  77. (defun my-prefer-coding-system-utf-8 ()
  78.   "Switch to UTF-8"
  79.   (interactive)
  80.   (prefer-coding-system 'utf-8)
  81.   (message "utf-8"))
  82.  
  83. (defun my-prefer-coding-system-cp1251 ()
  84.   "Switch to CP1251"
  85.   (interactive)
  86.   (prefer-coding-system 'cp1251)
  87.   (message "cp1251"))
  88.  
  89. (defun my-dark_frame ()
  90.   "Make frame in semidark/semilight colors"
  91.   (interactive)
  92. ;  (set-frame-font "-outline-Courier New-bold-normal-normal-mono-14-*-*-*-c-*-iso8859-1")
  93.   (set-frame-parameter nil 'cursor-color "grey")
  94.   (set-frame-parameter nil 'background-color "#403550")
  95.   (set-frame-parameter nil 'foreground-color "#c0a070"))
  96.  
  97. (defun my-light_frame ()
  98.   "Make frame in light colors"
  99.   (interactive)
  100. ;  (set-frame-font "-outline-Courier New-bold-normal-normal-mono-14-*-*-*-c-*-iso8859-1")
  101.   (set-frame-parameter nil 'cursor-color "black")
  102.   (set-frame-parameter nil 'background-color "#e8e0c8")
  103.   (set-frame-parameter nil 'foreground-color "black"))
  104.  
  105. (global-set-key [f1]  'prefer-coding-system)
  106. (global-set-key [C-f1]  'my-prefer-coding-system-cp1251)
  107. (global-set-key [S-f1]  'my-prefer-coding-system-utf-8)
  108.  
  109. (global-set-key [f12]  'copy-region-as-kill)
  110. (global-set-key [f11]  'backward-sexp)
  111. (global-set-key [f4] 'makefile-gmake-mode)
  112. (global-set-key [S-f4] 'fundamental-mode)
  113. (global-set-key [f5]  'global-font-lock-mode)
  114. (global-set-key [f6]  'font-lock-fontify-buffer)
  115. (global-set-key [f7]  'forward-sexp)
  116. (global-set-key [f8]  'point-to-register)
  117. (global-set-key [f9]  'jump-to-register)
  118. (global-set-key "\C-x\M-f" 'find-file-binary)
  119. (global-set-key "\C-x\M-h" 'htmlfontify-buffer)
  120. (define-key global-map "\^X\^G" 'goto-char)
  121. (custom-set-variables
  122.   ;; custom-set-variables was added by Custom.
  123.   ;; If you edit it by hand, you could mess it up, so be careful.
  124.   ;; Your init file should contain only one such instance.
  125.   ;; If there is more than one, they won't work right.
  126.  '(inhibit-startup-screen t))
  127. (custom-set-faces
  128.   ;; custom-set-faces was added by Custom.
  129.   ;; If you edit it by hand, you could mess it up, so be careful.
  130.   ;; Your init file should contain only one such instance.
  131.   ;; If there is more than one, they won't work right.
  132.  '(font-lock-comment-face ((((class color) (min-colors 88) (background light)) (:foreground "#503000" :slant italic)) (((class color) (min-colors 88) (background dark)) (:foreground "wheat" :slant italic))))
  133.  '(font-lock-keyword-face ((((class color) (min-colors 88) (background light)) (:foreground "purple")) (((class color) (min-colors 88) (background dark)) (:foreground "orchid"))))
  134.  '(font-lock-negation-char-face ((t (:foreground "magenta3"))))
  135.  '(font-lock-string-face ((((class color) (min-colors 88) (background light)) (:foreground "red4")) (((class color) (min-colors 88) (background dark)) (:foreground "orange"))))
  136.  '(font-lock-type-face ((((class color) (min-colors 88) (background light)) (:foreground "#005000")) (((class color) (min-colors 88) (background dark)) (:foreground "palegreen")))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement