Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.02 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.02 KB

c language notebook

time: 2021-7-13 21:01:07

basic

install emacs, vagrant, virtualbox

emacs config

mkdir -p ~/.emacs.d
cd ~/.emacs.d
touch init.el

write content:

;;; mac cmd key for meta
(setq mac-option-key-is-meta nil
      mac-command-key-is-meta t
      mac-command-modifier 'meta
      mac-option-modifier 'none)
      
;; xxx~ file save to ~/.emacs.d/.saves directory
(setq backup-directory-alist `(("." . "~/.emacs.d/.saves")))

vagrant and virtualbox

import vm image:

vagrant box add ubuntu/xenial64 /d/vtest/images/xenial-server-cloudimg-amd64-vagrant.box

fix mount VirtualBox shared folders issue, install vagrant vbguest plugins

vagrant plugin install vagrant-vbguest --plugin-clean-sources --plugin-source https://gems.ruby-china.com/

manual install/update VBox Guest Additions:

config.vbguest.auto_update = false

exec command:

vagrant up
vagrant vbguest --auto-reboot --no-provision
# no reboot need manual deal 
# vagrant reload