After each reboot, I have to painfully re-create and rename the
multi-term
buffers I use in my daily routine.
I am completely new to Lisp, but nonetheless, I searched for similar problem on the web and tried to adapt the code snippets I've found. I managed to open a multi-term
buffer, but renaming does not work as expected. Here is what I've tried so far in my init.el
:
(require 'multi-term)
(setq multi-term-program "/bin/bash")
;; Try to recreate my terminals
(add-hook 'emacs-startup-hook 'multi-term)
(add-hook 'emacs-startup-hook 'get-buffer)
(rename-buffer "redshift") ;; it renames the previous buffer (not the good one)
As a bonus, I would also like to be able to cd
to a specific directory. Thanks for your advice.
PS: I work on GNU Emacs 23.4.1 (Debian stable).