Skip to content

Self customized .spacemacs file, with special keybindings for OSX

Notifications You must be signed in to change notification settings

AndresHG/custom_spacemacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

custom_spacemacs

Self customized .spacemacs file, with special keybindings for OSX

keybings use lambda functions to insert special characters:

  (global-set-key (kbd "s-ç") 'comment-line)
  (global-set-key (kbd "s-3") (lambda () (interactive) (insert "#")))
  (global-set-key (kbd "s-1") (lambda () (interactive) (insert "|")))
  (global-set-key (kbd "s-º") (lambda () (interactive) (insert "\\")))

  (defun duplicate-line()
    (interactive)
    (move-beginning-of-line 1)
    (kill-line)
    (yank)
    (open-line 1)
    (next-line 1)
    (yank)
    )
  (defun delete-line()
    (interactive)
    (move-beginning-of-line 1)
    (kill-line)
    )
  (global-set-key (kbd "s-d") 'duplicate-line)
  (global-set-key (kbd "s-k") 'delete-line)
  )

Installation:

Install Spacemacs from here.

Download spacemacs_customized file and rename it to .spacemacs:

 mv spacemacs_customized .spacemacs

Backup your old .spacemacs:

 cp ~/.spacemacs ~/spacemacs.bak

Overroide old file with de new one:

 mv .spacemacs ~/.spacemacs

About

Self customized .spacemacs file, with special keybindings for OSX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published