Skip to content

Commit

Permalink
editor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
yokodake committed Jan 17, 2020
1 parent b3f0cc8 commit fa1e405
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
25 changes: 15 additions & 10 deletions .emacs.d/user.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@
(setq flycheck-gcc-language-standard "c11"))
(add-hook 'c-mode-hook #'my-flycheck-c-setup)

(setq c-default-style "linux" c-basic-offset 4)
(setq c-default-style "linux" c-basic-offset 2)

(use-package clang-format
:ensure t
:init
(add-hook 'c++-mode-hook 'flycheck-mode)
:config
(add-hook 'c++-mode-hook
(function (lambda ()
(add-hook 'before-save-hook
'clang-format-buffer)))))

;; haskell
(use-package dante
Expand Down Expand Up @@ -76,6 +86,8 @@
(setq inferior-lisp-program "~/.nix-profile/bin/sbcl")
(setq slime-contribs '(slime-fancy)))

;; quicklisp
(load (expand-file-name "~/quicklisp/slime-helper.el"))

;; keybinds
(use-package evil
Expand Down Expand Up @@ -106,8 +118,8 @@
(lambda ()
(setq css-indent-offset 2)))

(load-file (let ((coding-system-for-read 'utf-8))
(shell-command-to-string "agda-mode locate")))
; (load-file (let ((coding-system-for-read 'utf-8))
; (shell-command-to-string "agda-mode locate")))

(global-set-key "\C-c\C-k" 'describe-char)

Expand All @@ -120,10 +132,3 @@
(desktop-save "~/.emacs.d/.#desktop#"))
(global-set-key (kbd "C-c r l") 'load-desktop-default)
(global-set-key (kbd "C-c r s") 'save-desktop-default)


;; quicklisp

(load (expand-file-name "~/quicklisp/slime-helper.el"))
;; Replace "sbcl" with the path to your implementation
(setq inferior-lisp-program "sbcl")
4 changes: 3 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ syntax on
set termencoding=utf-8 encoding=utf8
set wmnu wim=list:longest,full wig=*.o,*~,*.pyc,*.tmp title titlestring=%t:%l%r%m
set titlelen=24 undofile udir=~/.vim/undo,/tmp ul=1024 ur=1024 ss=5 ls=2 nowrap
set lcs=extends:> tw=80 nu nuw=1 sts=2 shiftwidth=2 ts=2 isk+=- si sta ai hid
set lcs=extends:> nu nuw=1 sts=2 shiftwidth=2 ts=2 isk+=- si sta ai hid
set sc cc=80 spr sb nobk ignorecase hls magic noswapfile et tf lz
set statusline=%{Github(branch,repository)}%L:%l%=%m[%{Filesize()}]

" set tw=80 " line wrap

highlight ColorColumn ctermbg=8

" If there's a .git repository, the function will display the current directory
Expand Down

0 comments on commit fa1e405

Please sign in to comment.