瀏覽代碼

Update

master
10sr 3 年之前
父節點
當前提交
85c5c08533
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 3 個檔案被更改,包括 19 行新增4 行删除
  1. +16
    -4
      emacs.el
  2. +2
    -0
      shrc
  3. +1
    -0
      tmux.conf

+ 16
- 4
emacs.el 查看文件

@@ -434,10 +434,10 @@ Otherwize hook it."
(global-set-key (kbd "C-h") (kbd "DEL"))
;; (normal-erase-is-backspace-mode 1)
;; M-SPC fixup-whitespace]
(when (fboundp 'global-hungry-delete-mode)
(set-variable 'hungry-delete-join-reluctantly t)
(add-hook 'after-first-visit-hook
'global-hungry-delete-mode))
;; (when (fboundp 'global-hungry-delete-mode)
;; (set-variable 'hungry-delete-join-reluctantly t)
;; (add-hook 'after-first-visit-hook
;; 'global-hungry-delete-mode))

;;(global-set-key (kbd "C-m") 'reindent-then-newline-and-indent)
(global-set-key (kbd "C-m") 'newline-and-indent)
@@ -3101,6 +3101,18 @@ ARGS are not used."
"/Applications/Vivaldi.app/Contents/MacOS/Vivaldi"
url))


(defun my-vterm-cmd (command)
"Start arbitrary command in vterm buffer."
(interactive "sCommand: ")
(let ((vterm-shell command)
(vterm-buffer-name "*vterm-cmd*")
(vterm-kill-buffer-on-exit nil))
(when (get-buffer vterm-buffer-name)
(kill-buffer (get-buffer vterm-buffer-name)))
(vterm)))


;; https://emacs-jp.github.io/tips/startup-optimization
;; Restore to original value
(setq gc-cons-threshold my-orig-gc-cons-threshold)


+ 2
- 0
shrc 查看文件

@@ -348,6 +348,8 @@ __safe_alias igosh=gosh-rl
__safe_alias pipenv="env -u PIP_USER pipenv"
__safe_alias pipx="env -u PIP_USER pipx"

alias f='less `fzf`'


# Sometimes SHELL cannot be used. For example, when running bash inside zsh
# SHELL is set to be /bin/zsh


+ 1
- 0
tmux.conf 查看文件

@@ -28,6 +28,7 @@ set -g history-limit 10000
setw -g mode-keys vi
#setw -g mode-mouse off
#set -g default-command /bin/bash
set -g default-command "while true; do /bin/bash -l; done"

# Use pasteboard on MacOS
run-shell 'test "`uname`" = Darwin && tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"'


Loading…
取消
儲存