先把配置背过吧:
(set-background-color "gray15")
(set-foreground-color "gray")
(global-linum-mode t)
(setq default-tab-width 4)
(show-paren-mode t)
(setq-default cursor-type 'bar)
(global-set-key [f8] 'shell)

1 1 (set-background-color "gray15") 2 2 (set-foreground-color "gray") 3 3 4 4 (global-set-key [f8] 'shell) 5 5 (global-set-key [f9] 'compile) 6 6 (global-set-key [f10] 'gud-gdb) 7 7 8 8 (setq default-tab-width 4) 9 9 1010 (set-frame-parameter (selected-frame) 'alpha (list 85 50)) 1111 (add-to-list 'default-frame-alist (cons 'alpha (list 85 50))) 1212 (setq-default cursor-type 'bar) 1313 (show-paren-mode t) 1414 (global-linum-mode t) 1515 (setq c-default-style "awk") 1616 (custom-set-variables 1717 ;; custom-set-variables was added by Custom. 1818 ;; If you edit it by hand, you could mess it up, so be careful. 1919 ;; Your init file should contain only one such instance. 2020 ;; If there is more than one, they won't work right. 2121 '(cua-mode t nil (cua-base)) 2222 '(show-paren-mode t)) 2323 (custom-set-faces 2424 ;; custom-set-faces was added by Custom. 2525 ;; If you edit it by hand, you could mess it up, so be careful. 2626 ;; Your init file should contain only one such instance. 2727 ;; If there is more than one, they won't work right. 2828 '(default ((t (:family "宋体" :foundry "outline" :slant normal :weight normal :height 158 :width normal)))))
舒适版
然后调以下几个地方:
Opinion里面,把复制粘贴改成windows常用的那种;
Opinion -> Set Default Font -> Free Mono -> 14;
对拍:
# include <bits/stdc++.h>
using namespace std;
int main()
{
int n=0;
while (1)
{
n++;
printf("Test %d:\n",n);
system("./data");
system("./std");
system("./my");
if(system("diff std.out my.out"))
{
puts("WA");
getchar();
}else puts("AC");
}
return 0;
}
2019.5.26更新:
今天下载了windows下的emacs,发现以前一直不生效的半透明终于可以用了,真的很好看呢。
(set-frame-parameter (selected-frame) 'alpha (list 85 50))
一个注意事项:windows下的emacs打开终端会非常非常卡,把字体调成宋体就可以解决这个问题。
焦点在页面上的时候是这样的:

焦点不在页面上的时候是这样的:
