Lemon juice increases the acidity of the guacamole, making it last longer. To keep the top of your guac green, you can also add a thin layer of olive oil or even water as it forms a protective shield that improves its shelf life.