I usually use the following lisp code to kill the current line with a single key combination. This will delete the entire line and move to the beginning of the cursor.
(defun my-kill-line ()
"kill current line. you don't have to put point at the beginning of line."
(interactive)
(copy-kill 'kill 'line))
The best approach (as soon as you become familiar with using Emacs) is to use some kind of package to simplify file navigation. Take a look at the steering wheel (or ido), which I personally prefer the steering wheel and projectile. By combining helm + projectile, you can quickly open files and easily switch between files located in different directories / projects.
source
share