   ;; lines must have the same number of columns of groups of non-space characters
   (global-set-key (kbd "C-x |")       'align-columns)
 
+  (global-set-key (kbd "C-k")         'kill-line)
+  (global-set-key (kbd "C-S-k")       'smart-kill-whole-line)
+  ;; override the binding of `C-o` for `open-line'
+  (global-set-key (kbd "C-o")         'smart-open-line)
+
   (define-key modi-map (kbd "x")      'eval-and-replace-last-sexp) ;; C-x m x
   (define-key modi-map (kbd "c")      'toggle-comment-on-line-or-region) ;; C-x m c
   )

  (global-set-key (kbd "C-x C-r")   'rename-current-buffer-file)
  (define-key modi-map (kbd "b")    'switch-to-scratch-and-back) ;; C-x m b
  ;; overriding the `C-x C-o` binding with `delete-blank-lines'
  (global-set-key (kbd "C-x C-o")   'recentf-open-files)
  (define-key modi-map (kbd "l")    'load-current-file) ;; C-x m l
  (global-set-key (kbd "C-S-t")     'undo-kill-buffer) ;; same shortcut as for reopening closed tabs in browsers
  (global-set-key (kbd "<M-up>")    'scroll-down-dont-move-point)

  ;; (key-chord-define-global "=]"   )

  ;; Editing
  (when (boundp 'setup-undo-tree-loaded)
    (key-chord-define-global "UU"   'undo-tree-redo)
    (key-chord-define-global "\}\}" 'undo-tree-switch-branch))

  (key-chord-define-global "]'"   'completion-at-point)
  (key-chord-define-global "[;"   'completion-at-point)
  (key-chord-define-global ";."   'completion-at-point)
