use shorter lines to avoid scrollbars in code blocks on my site
This commit is contained in:
parent
006039eb6d
commit
d41907ac77
53
init.el
53
init.el
@ -82,8 +82,10 @@
|
|||||||
(setq helm-split-window-default-side 'other)
|
(setq helm-split-window-default-side 'other)
|
||||||
(helm-mode 1)
|
(helm-mode 1)
|
||||||
:config
|
:config
|
||||||
(define-key helm-find-files-map (kbd "<backtab>") #'helm-select-action)
|
(define-key helm-find-files-map
|
||||||
(define-key helm-find-files-map (kbd "C-i") #'helm-execute-persistent-action)
|
(kbd "<backtab>") #'helm-select-action)
|
||||||
|
(define-key helm-find-files-map
|
||||||
|
(kbd "C-i") #'helm-execute-persistent-action)
|
||||||
:bind
|
:bind
|
||||||
(("M-x" . helm-M-x)
|
(("M-x" . helm-M-x)
|
||||||
("M-y" . helm-show-kill-ring)
|
("M-y" . helm-show-kill-ring)
|
||||||
@ -135,7 +137,7 @@
|
|||||||
(("C-c R" . rg)))
|
(("C-c R" . rg)))
|
||||||
|
|
||||||
|
|
||||||
;;; Use more more efficient changing windows
|
;;; Use more efficient changing windows
|
||||||
|
|
||||||
(use-package ace-window
|
(use-package ace-window
|
||||||
:ensure nil
|
:ensure nil
|
||||||
@ -156,7 +158,9 @@
|
|||||||
(use-package helm-spaces
|
(use-package helm-spaces
|
||||||
:ensure nil
|
:ensure nil
|
||||||
;; customize mode-line-format to add: "(" sp-current-space ")"
|
;; customize mode-line-format to add: "(" sp-current-space ")"
|
||||||
;; or in powerline theme add: (powerline-raw (if (and (boundp 'sp-current-space) sp-current-space) (concat " (" sp-current-space ")") "") face2)
|
;; or in powerline theme add:
|
||||||
|
;; (powerline-raw (if (and (boundp 'sp-current-space) sp-current-space)
|
||||||
|
;; (concat " (" sp-current-space ")") "") face2)
|
||||||
:bind
|
:bind
|
||||||
("C-c b" . helm-spaces))
|
("C-c b" . helm-spaces))
|
||||||
|
|
||||||
@ -241,14 +245,16 @@
|
|||||||
Argument FRAMES has the same meaning as for `set-frame-font'"
|
Argument FRAMES has the same meaning as for `set-frame-font'"
|
||||||
(interactive "n[Inconsolata] size: ")
|
(interactive "n[Inconsolata] size: ")
|
||||||
(set-frame-font
|
(set-frame-font
|
||||||
(format "Inconsolata:pixelsize=%d:antialias=true:autohint=true" size) nil frames))
|
(format "Inconsolata:pixelsize=%d:antialias=true:autohint=true" size)
|
||||||
|
nil frames))
|
||||||
|
|
||||||
(defun set-frame-font-go-mono (size &optional frames)
|
(defun set-frame-font-go-mono (size &optional frames)
|
||||||
"Set font to Go mono:pixelsize=SIZE:antialias=true:autohint=false.
|
"Set font to Go mono:pixelsize=SIZE:antialias=true:autohint=false.
|
||||||
Argument FRAMES has the same meaning as for `set-frame-font'"
|
Argument FRAMES has the same meaning as for `set-frame-font'"
|
||||||
(interactive "n[Go mono] size: ")
|
(interactive "n[Go mono] size: ")
|
||||||
(set-frame-font
|
(set-frame-font
|
||||||
(format "Go mono:pixelsize=%d:antialias=true:autohint=true" size) nil frames))
|
(format "Go mono:pixelsize=%d:antialias=true:autohint=true" size)
|
||||||
|
nil frames))
|
||||||
|
|
||||||
;; my customization of used themes
|
;; my customization of used themes
|
||||||
|
|
||||||
@ -420,7 +426,8 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
|
|||||||
;;; $ cd rtags
|
;;; $ cd rtags
|
||||||
;;; $ mkdir build
|
;;; $ mkdir build
|
||||||
;;; $ cd build
|
;;; $ cd build
|
||||||
;;; $ cmake -DLIBCLANG_LLVM_CONFIG_EXECUTABLE=llvm-config-3.8 -DCMAKE_INSTALL_PREFIX=/opt/rtags ..
|
;;; $ cmake -DLIBCLANG_LLVM_CONFIG_EXECUTABLE=llvm-config-3.8 \
|
||||||
|
;;; -DCMAKE_INSTALL_PREFIX=/opt/rtags ..
|
||||||
;;; $ make
|
;;; $ make
|
||||||
;;; ```
|
;;; ```
|
||||||
|
|
||||||
@ -481,7 +488,8 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
|
|||||||
(paren-face-mode))
|
(paren-face-mode))
|
||||||
|
|
||||||
(defun my-lisp-mode-hook-fn ()
|
(defun my-lisp-mode-hook-fn ()
|
||||||
(set (make-local-variable 'lisp-indent-function) #'common-lisp-indent-function)
|
(set (make-local-variable 'lisp-indent-function)
|
||||||
|
#'common-lisp-indent-function)
|
||||||
(paredit-mode 1)
|
(paredit-mode 1)
|
||||||
(local-set-key (kbd "C-c S") (global-key-binding (kbd "M-s")))
|
(local-set-key (kbd "C-c S") (global-key-binding (kbd "M-s")))
|
||||||
(show-paren-mode 1)
|
(show-paren-mode 1)
|
||||||
@ -493,14 +501,15 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
|
|||||||
(defun slime-qlot-exec (directory)
|
(defun slime-qlot-exec (directory)
|
||||||
"from https://github.com/fukamachi/qlot/blob/master/README.markdown"
|
"from https://github.com/fukamachi/qlot/blob/master/README.markdown"
|
||||||
(interactive (list (read-directory-name "Project directory: ")))
|
(interactive (list (read-directory-name "Project directory: ")))
|
||||||
(slime-start :program "qlot"
|
(slime-start
|
||||||
:program-args '("exec" "ros" "-S" "." "run")
|
:program "qlot"
|
||||||
:directory directory
|
:program-args '("exec" "ros" "-S" "." "run")
|
||||||
:name 'qlot
|
:directory directory
|
||||||
:env (list (concat "PATH="
|
:name 'qlot
|
||||||
(mapconcat #'identity exec-path ":"))
|
:env (list (concat "PATH="
|
||||||
(concat "QUICKLISP_HOME="
|
(mapconcat #'identity exec-path ":"))
|
||||||
(file-name-as-directory directory) "quicklisp/"))))
|
(concat "QUICKLISP_HOME="
|
||||||
|
(file-name-as-directory directory) "quicklisp/"))))
|
||||||
|
|
||||||
;;; JS mode
|
;;; JS mode
|
||||||
;;; -------
|
;;; -------
|
||||||
@ -582,7 +591,8 @@ inserted between the braces between the braces."
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:init
|
:init
|
||||||
(setq gofmt-command "goimports" ; use goimports instead of gofmt
|
(setq gofmt-command "goimports" ; use goimports instead of gofmt
|
||||||
go-fontify-function-calls nil ; fontifing names of called functions is too much for me
|
go-fontify-function-calls nil ; fontifing names of called
|
||||||
|
; functions is too much for me
|
||||||
company-idle-delay nil)
|
company-idle-delay nil)
|
||||||
:bind
|
:bind
|
||||||
(:map go-mode-map
|
(:map go-mode-map
|
||||||
@ -745,7 +755,8 @@ inserted between the braces between the braces."
|
|||||||
(use-package dart-mode
|
(use-package dart-mode
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:init
|
:init
|
||||||
(let ((path (expand-file-name "~/local/src/flutter/bin/cache/dart-sdk/")))
|
(let ((path (expand-file-name
|
||||||
|
"~/local/src/flutter/bin/cache/dart-sdk/")))
|
||||||
(if (file-accessible-directory-p path)
|
(if (file-accessible-directory-p path)
|
||||||
(setq dart-sdk-path path)))
|
(setq dart-sdk-path path)))
|
||||||
(setq dart-enable-analysis-server t)
|
(setq dart-enable-analysis-server t)
|
||||||
@ -778,7 +789,8 @@ inserted between the braces between the braces."
|
|||||||
|
|
||||||
(defun my-php-mode-hook-fn()
|
(defun my-php-mode-hook-fn()
|
||||||
(when (require 'company-php nil t)
|
(when (require 'company-php nil t)
|
||||||
(set (make-local-variable 'company-backends) '(company-ac-php-backend))
|
(set (make-local-variable 'company-backends)
|
||||||
|
'(company-ac-php-backend))
|
||||||
(company-mode t)
|
(company-mode t)
|
||||||
(local-set-key (kbd "M-.") #'ac-php-find-symbol-at-point)))
|
(local-set-key (kbd "M-.") #'ac-php-find-symbol-at-point)))
|
||||||
|
|
||||||
@ -898,7 +910,8 @@ of the key binding used to execute this command."
|
|||||||
|
|
||||||
(let ((character ?a))
|
(let ((character ?a))
|
||||||
(while (<= character ?z)
|
(while (<= character ?z)
|
||||||
(define-key my-switch-to-register-map (format "%c" character) #'my-switch-to-register)
|
(define-key my-switch-to-register-map
|
||||||
|
(format "%c" character) #'my-switch-to-register)
|
||||||
(setq character (1+ character))))
|
(setq character (1+ character))))
|
||||||
|
|
||||||
(global-set-key (kbd "s-s") my-switch-to-register-map)
|
(global-set-key (kbd "s-s") my-switch-to-register-map)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user