Advertisement
avp210159

my.emacs

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