iankelling.org
/
git
/
dot-emacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5e7314
)
varous small fixes
author
Ian Kelling
<ian@iankelling.org>
Sun, 9 Apr 2017 06:37:16 +0000
(23:37 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Sun, 9 Apr 2017 06:37:16 +0000
(23:37 -0700)
init.el
patch
|
blob
|
history
my-init.org
patch
|
blob
|
history
diff --git
a/init.el
b/init.el
index 6b279cae0780a9d1c901dfdfe0e7bbf2a8319192..5596c9b998c60401293416f88b01eaee496aefe0 100644
(file)
--- a/
init.el
+++ b/
init.el
@@
-32,6
+32,8
@@
;; You may delete these explanatory comments.
(package-initialize)
;; You may delete these explanatory comments.
(package-initialize)
+;; used to freeze emacs and was really annoying,
+;; seems its changed now. no harm in keeping this though.
(global-unset-key (kbd "C-z"))
;; these need to be done before the hook in order to satisfy the byte compiler
(global-unset-key (kbd "C-z"))
;; these need to be done before the hook in order to satisfy the byte compiler
diff --git
a/my-init.org
b/my-init.org
index 1c98c882a264559deba457bd13a86f0f627618ca..fa7c72f8eb9537681736a3cde2af659e60e44f6e 100644
(file)
--- a/
my-init.org
+++ b/
my-init.org
@@
-574,9
+574,20
@@
I need this function here, where INSIDE_EMACS is replaced with RLC_INSIDE_EMACS.
;; main hook for my auto save
(add-hook 'auto-save-hook 'my-auto-save)
;; additional hook to try to deal with emacs not auto-saving when a buffer isn't active
;; main hook for my auto save
(add-hook 'auto-save-hook 'my-auto-save)
;; additional hook to try to deal with emacs not auto-saving when a buffer isn't active
-(add-hook 'window-configuration-change-hook 'my-auto-save)
+(add-hook 'window-configuration-change-hook 'my-auto-save
-win
)
-(defun my-auto-save ()
+;; this function from mu4e really does not like buffer saving
+(advice-add 'message-send-and-exit :before 'my-as-off)
+(advice-add 'message-send-and-exit :after 'my-as-on)
+
+;; avoid window config hook saving too much, it can
+;; get into loops in some random situations
+(setq my-auto-save-last nil)
+(defun my-auto-save-win ()
+ (unless (eq (current-buffer) my-auto-save-last)
+ (my-auto-save (current-buffer))))
+
+(defun my-auto-save (&optional last)
(when (and
my-as
(buffer-file-name)
(when (and
my-as
(buffer-file-name)
@@
-584,6
+595,7
@@
I need this function here, where INSIDE_EMACS is replaced with RLC_INSIDE_EMACS.
(not (string= (buffer-file-name) "*draft*"))
(buffer-modified-p)
(not (org-src-edit-buffer-p)))
(not (string= (buffer-file-name) "*draft*"))
(buffer-modified-p)
(not (org-src-edit-buffer-p)))
+ (setq my-auto-save-last last)
(let (message-log-max)
;; a bit of a hack to partially suppress the constant saving in the echo area
(with-temp-message ""
(let (message-log-max)
;; a bit of a hack to partially suppress the constant saving in the echo area
(with-temp-message ""
@@
-2268,9
+2280,8
@@
currently makes emacs hang a bunch. dunno why. just using eclipse instead
;; this starter kit setting is probably good
(if window-system (setq frame-title-format '(buffer-file-name "%f" ("%b"))))
;; this starter kit setting is probably good
(if window-system (setq frame-title-format '(buffer-file-name "%f" ("%b"))))
-(set-terminal-coding-system 'utf-8)
-(set-keyboard-coding-system 'utf-8)
-(prefer-coding-system 'utf-8)
+
+;;(prefer-coding-system 'utf-8-unix)
;; remove ugly 3d box feature
(set-face-attribute 'mode-line nil :box nil)
;; remove ugly 3d box feature
(set-face-attribute 'mode-line nil :box nil)
@@
-3649,6
+3660,8
@@
commands to change: select other window: C-x o.
#+end_src
** named commands
#+end_src
** named commands
+*** gdb
+gdb-many-windows
*** tramp sudo
/ssh:host|sudo:host:
when in the same session, you can then do:
*** tramp sudo
/ssh:host|sudo:host:
when in the same session, you can then do: