Lines Matching +defs:suspend +defs:emacs
32 ;; In order to use it, you must put this code in your .emacs file.
34 ;; (add-hook 'suspend-hook 'resume-suspend-hook)
35 ;; (add-hook 'suspend-resume-hook 'resume-process-args)
37 ;; You can't get the benefit of this library by using the `emacs' command,
42 ;; To define the `edit' command, run the script etc/emacs.csh (if you use CSH),
43 ;; or etc/emacs.bash if you use BASH. You would normally do this in your
51 (defvar resume-emacs-args-file (expand-file-name "~/.emacs_args")
54 (defvar resume-emacs-args-buffer " *Command Line Args*"
60 (args-buffer (get-buffer-create resume-emacs-args-buffer))
67 ;; get the contents of resume-emacs-args-file
69 (let ((result (insert-file-contents resume-emacs-args-file)))
89 (resume-write-buffer-to-file (current-buffer) resume-emacs-args-file)
108 (defun resume-suspend-hook ()
111 (set-buffer (get-buffer-create resume-emacs-args-buffer))
113 (resume-write-buffer-to-file (current-buffer) resume-emacs-args-file)))